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: 2374
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 search and replace multiple file with multiple regex rules? (63%)
How to import a list of rules to replace multiple files? (62%)
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%)

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