Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

979.Regular expression replace -- How to add a new line return after specified char combinations?

User: Aaron -- 2012-07-24          << 978  980 >>
Hits: 3440
Type: Regular expression replace   
Search all Regular expression replace examples
Description:
I would like to add a new line return after each of the following syntax combinations: 
. (period followed by single or double space) ." (period and single quote) ?" (question mark and quote) !" (exclamation point and quote) --" (double dashes and quote) 
Exceptions: I don't want to add a line return after the words Mrs. Mr. 
Ms. or ellipsis marks ... (three periods in a row) 
I have tried modifying number 93 and 581 but without success. Once I have the syntax for above then I can add other.
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'search for pattern' to: 
 
* set 'replace with pattern' to: 
 
* set 'if' to: 
 
3. click 'replace', done. 
4. ctrl-s save to file

Screenshot 1:  Replace_Window


Similar Examples:
How to extarct specified pattern by conditions? (58%)
How to change the order of lines according to specified position? (58%)
How to change each line into specified format? (57%)
How to change each line of data to the specified format? (57%)
How to count the number of lines under each specified pattern? (57%)
How to re-arrange lines with in a specified number of lines? (56%)
How to generate the full list of 2 letter combinations? (55%)
How to parse data from the text file and create text with  user specified format? (55%)

Check Demo of Regular expression replace
Keywords:
ips  chm  double space  question mark  combinations  combination  dash  periods  quote  mark  add a return after each line  add point  return after period  add return after period  return for each period  space to point  replace question mark  space syntax