| User: editor -- 2008-05-12 << 82 84 >> |
| Hits: 457 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| Can I make change to text file, adding 3 spaces after every 9 characters? |
| Input Sample: |
| abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz |
| Output Sample: |
| abcdefghi jklmnopqr stuvwxyza bcdefghij klmnopqrs tuvwxyz |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| The solution is to and 3 spaces after characters 9,18,27,36..., procedures: 1. ctrl-o open source file 2. ctrl-h open replace dialog, in 'Replace' page, 1) Unit number filter: means 9,18,27,... (start by 9, step is 9) 2) Search for pattern: 3) Replace with pattern: --There are 3 spaces after $match 3. Click 'Replace', that's ok! |
| Download Script: scripts/83.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to add a single space after each character in a text file? (82%) How to add a page number after every 40 lines in a text file? (75%) How to add a space after the 15 character of each line? (75%) How to add a blank line after every 8 lines in text file? (73%) How to add the numbers together in every 2 adjacent lines in text file? (70%) How to insert a blank line after every 5 lines in a text file? (65%) How to insert a space between every 80 characters? (65%) How to extract all lines longer than 80 characters from a text file? (64%) |
Check Demo of Advanced search and replace |
| Keywords: |
| adding spaces after unit number filter number filter space every filter characters unit number add spaces after number add page number after text number match add replace after text pattern filter filter number |