User: vlad -- 2012-02-06 << 912 914 >> |
Hits: 6042 |
Type: Regular expression replace |
Search all Regular expression replace examples |
Description: |
How to remove consecutive duplicate words in multiple files? I would like to scan 30000 pages for duplicate text lets say if i have "online online" i want it to become "online" and so for all the duplicates. The only problem I do not know how many duplicates I possibly have and which duplicates I have so I can not just put "online online"etc. |
Input Sample: |
This is an online online page |
Output Sample: |
This is an online page |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Batch Runner" window 2. drag multiple page files from "windows file browser" to "batch runner" window 3. click "fast replace" to open "fast replace" window 4. click "Add" to add a new rule * set "search" to: * set "replace" to: * click "ok" 5. make sure "reg exp" and "cross line" options are selected 6. click "start" and click "ok", done. |
Screenshot 1: Fast_Replace_Window |