| User: editor -- 2008-05-15 |
| Hits: 183 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to replace the first 3 characters of each line to fixed characters? |
| Input Sample: |
| 13524603447 13482041248 13472487483 13651712904 13706821844 |
| Output Sample: |
| p24603447a p82041248a p72487483a p51712904a p06821844a |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1.press ctrl-o to open source file 2.press ctrl-h to open replace dialog, set as follows: In 'Replace' page: * Set 'Replace Unit' to 'Line' * Fill 'Search for pattern' to be: * Fill 'Replace with pattern' to be: 3. click 'Replace' Button, ok |
| Download Script: scripts/107.rst.zip |
Similar Examples: |
| How to remove the first 10 characters of each line in text file? (66%) How to batch rename files to the first 8 characters of the second line of file content? (63%) How to reverse the order of characters in each line of text? (61%) Replace first char of each line to upper case (61%) How to extract all lines in which the first character is the same as last character? (57%) How to remove every other characters on each line of text? (57%) How to rename files to the last 10 chars of 3rd line of file content? (56%) How to replace the characters in fixed position in each line? (54%) |
Check Demo of Advanced search and replace |