Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

331.Replace text in multiple files -- How to find and replace multiple line text?

User: editor -- 2009-05-15          << 330  332 >>
Hits: 623
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
How to find and replace multiple line text?
Input Sample:
aaaa
LINE1
LINE2
LINE3
bbbb
cccc
LINE1
LINE2
LINE3
ddd
eee
Output Sample:
aaaa
Here is replacement of 3 lines
bbbb
cccc
Here is replacement of 3 lines
ddd
eee
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
You can replace multiple line text just as single line text.
1. ctrl-o open source txt file
2. ctrl-h open replace dialog
* enter your multiple line text into "Search for pattern" like:

* enter the replacement text in "Replace with Pattern" window:

3. Click "Replace", done!

Note:
1. If there's some special symbols in your text, like ()."[] ..., you need to quote the text with a pair of single quote(').
2. If your text contain single quote, you need to add a backslash(\) before single quote.

Please check following link for more info:

http://www.mind-pioneer.com/replace/help/Syntax_of_Search_Pattern.html

Screenshot 1:  Replace_Window


Similar Examples:
How to replace all duplicate lines with some text? (66%)
How to copy one file to create multiple duplicate files? (62%)
How to search and replace multiple terms with 1 common term in text file? (62%)
How to search and replace strings in multiple utf-8 encoded text files? (60%)
How to generate multiple line text with increasing HEX number? (59%)
How to find bytes 0xAB**CD and replace with 0xCD**AB in multiple binary files? (59%)
How to search and replace with multiple mapping rules by regular expression? (58%)
How to use "if" in replace pioneer? (57%)

Check Demo of Replace text in multiple files
Keywords:
quote  symbols  how to find and replace multiple line text  special  find and replace multiple  backslash  slash  syntax  symbol  sym  replace single with a pair  find link  replace quote  text replacement  add before line  find and replace add  find replace in multiple files  replace multiple with single