Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1374.Advanced search and replace -- How to add a <hr> at the end of each paragraph?

User: ddumetz -- 2016-06-20          << 1373  1375 >>
Hits: 2678
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to add a <hr> at the end of each paragraph?
Input Sample:
file type1:(paragraph separated by blankline): 
AAAA 
 
BBBB 
 
CCCC 
 
file type2(paragraph separated by <H2>): 
<H2>AAAA 
AAAAAA 
<H2>BBBB 
BBBBBB 
<H2>CCCC 
CCCCCC 
Output Sample:
file type1: 
AAAA 
<hr> 
BBBB 
<hr> 
CCCC 
<hr> 
 
file type2: 
<H2>AAAA 
AAAAAA 
<hr> 
<H2>BBBB 
BBBBBB 
<hr> 
<H2>CCCC 
CCCCCC 
<hr>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open file 
2. ctrl-h open 'replace' dialogue 
* set 'Replace Unit' to 'Paragraph' 
* set 'replace with pattern' to: 
 
* set 'if' to:(this step prevent the <h2> added to last paragraph) 
 
 
For file type2(paragraph separated by <H2>):  
click 'settings' tab: 
* set 'Paragraph delimiter' to  
* set 'Paragraph end' to 'None' 
 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Settings_Window


Similar Examples:
How to add a <BR> at the end of each line? (73%)
How to sort paragraphs base on the second word in each paragraph? (62%)
How to add a semicolon at the end of each line? (62%)
How to add random digit/chars at the end of each line? (61%)
How to add a word "myword" at the end of each line? (61%)
How to separate each paragraph by two lines? (59%)
How to add a blank line after last sentence of paragraph? (58%)
How to add some text before each paragraph automatically? (58%)

Check Demo of Advanced search and replace
Keywords:
paragraph delimiter  even  separate  non  paragraph  paragra  type  delimiter  settings  setting  paragraph end delimiter  add delimiter  tab delimiter  add tab  search paragraph  paragraph pattern  paragraph replace  replace paragraph