Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

331.Multiple files search replace -- How to find and replace multiple line text?

User: editor -- 2009-05-15
Hits: 227
Type: Multiple files search replace   
Search all Multiple files search replace 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" 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

Similar Examples:
How to search and replace multiple terms with 1 common term in text file? (62%)
How to use "if" in replace pioneer? (57%)
How to shuffle all the lines in a text file? (56%)
How to delete duplicate lines of a text file? (56%)
How to replace adjacent multiple spaces in a text files into one tab? (54%)
How to open a binary file and replace some bytes inside it? (54%)
How to sort and delete duplicate lines of a text file? (54%)
How to delete the first word in each line in a text file? (53%)

Check Demo of Replace text in multiple files