| User: editor -- 2009-05-17 << 332 334 >> |
| Hits: 526 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to replace all the words 'TEMPLATE.jpg' with 001.jpg, 002.jpg, 003.jpg, ... respectively? |
| Input Sample: |
| this is picture TEMPLATE.jpg this is example this is picture TEMPLATE.jpg this is picture TEMPLATE.jpg |
| Output Sample: |
| this is picture 001.jpg this is example this is picture 002.jpg this is picture 003.jpg |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open source file 2. ctrl-h open replace dialog * fill "search for pattern" like: * fill "replace with pattern" like: 3. click "Replace", done. Note: calc($word_no,"03d") will format the $word_no 1,2,3,... to 001,002,003,... |
| Download Script: scripts/333.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to replace all the word 'TEMPLATE' with each word in a dictionary file in sequence? (54%) How to replace all words PLACE_HOLDER with title of the html file? (46%) How to rename a sequence of files to 001,002,003,...? (45%) How to replace all the numbers in a text file to the square value? (43%) How to download all jpg pictures from a web page, and automatically save as files like 1.jpg, 2.jpg, 3.jpg, ...? (43%) How to change all AXXX.jpg to A(XXX+100).jpg in a text file? (43%) How to replace the all word "test" with the first word in same line? (42%) How to replace all the password field in text file with random chars? (41%) |
Check Demo of Advanced search and replace |
| Keywords: |
| 123 200 jpg 100 template tem calc format words cal search words words to replace replace words search and replace open source search pattern search replace 1 1 |