User: elinathurman -- 2012-02-04 << 911 913 >> |
Hits: 1839 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
If the title more than 8 words, then delete the last 3 words |
Input Sample: |
first_line:aa bb cc dd ee ff gg hh body: blah! blah! blah! blah! |
Output Sample: |
first_line:aa bb cc dd ee body: blah! blah! blah! blah! |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Following steps will remove the last 3 words in first line, only if the first line has 8 words or more: 1. open "Tools->Batch Runner" menu 2. drag multiple files from "windows file browser" to "Batch Runner" window 3. click "Fast Replace" button to open "Fast Replace" window 4. click "Add" to add rules: * set "search" to: * set "replace" to: * click "ok" 5. make sure "Reg exp" options and "cross line" options are checked. 6. click "start", and click "ok", done! Note: please make backup in advanced to avoid mis-operation. |
Screenshot 1: Fast_Replace_Window |