User: yong -- 2014-09-01 << 1238 1240 >> |
Hits: 3047 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
I have some text file, I want to bulk replace some words, please see the text sample. |
Input Sample: |
Replace the word group "one two" with the list word: one aaa, one bbb, one ccc text file 1: blah blah blah blah blah one two blah blah blah blah text file 2: blah blah blah blah blah one two blah blah blah blah text file 3: blah blah blah blah blah one two blah blah blah blah |
Output Sample: |
text file 1: blah blah blah blah blah one aaa blah blah blah blah text file 2: blah blah blah blah blah one bbb blah blah blah blah blah blah text file 3: blah blah blah blah blah one ccc blah blah blah blah blah blah |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. prepare a file d:\test\word.txt contain the word list in each line, like: one aaa one bbb one ccc ... 2. open "Tools->Batch Runner" menu 3. drag multiple files from windows file browser and drop to "Batch Runner" window 4. click "Fast Replace" button 5. click "add" to add new rules * set "search" to: * set "replace" to: * click "ok" 6. make sure "regexp" option are checked, and click "start", done. |
Screenshot 1: Fast_Replace_Window |