| User: tang jin fei -- 2011-07-30 << 828 830 >> |
| Hits: 4011 |
| Type: Replace text in multiple files |
| Search all Replace text in multiple files examples |
| Description: |
| Hi, I have lots of html files with <P>........</P> tags. I need to find the things between the tags and insert a global (for all the files) and increasing number id in it. Can someone tell me? |
| Input Sample: |
| file1: <P>abcd</P> <P>fgh</P> file2: <P>wxyz</P> |
| Output Sample: |
| file1: <P>abcd[001]</P> <P>fgh[002]</P> file2: <P>wxyz[003]</P> |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. clear system dictionary by select menu "Settings->Dictionary->Clear Dictionary" 2. open "Tools->Batch Runner" menu 3. drag multiple text files from "Windows File Explorer" to "Batch Runner" window 4. click "Fast Replace" to open "Fast Replace" dialog * click "Add" to add new replace rule set "Search" to: set "Replace" to: * click "ok". 5. check option of "ignore cages", "Reg exp" and "Cross line" 6. click "Start", done. |
Screenshot 1: Fast_Replace_Window |