| User: Jaap van Boheemen -- 2008-10-29 << 286 288 >> |
| Hits: 380 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| I have to add a komma (,) after each number. But only after the first 2 colums |
| Input Sample: |
| 185002.65 506251.19 -1.25 185002.59 506254.47 -1.21 185002.53 506247.90 -1.22 |
| Output Sample: |
| 185002.65, 506251.19, -1.25 185002.59, 506254.47, -1.21 185002.53, 506247.90, -1.22 |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| The idea is adding a comma after word1 and word2 in each line. 1. ctrl-o open source text 2. ctrl-h open 'Replace' dialog * set "Replace Unit" to "Word" * set "Replace Scope" to "Line" * set unit number filter to * set "Replace with pattern" to: 3. Click "Replace", done! |
| Download Script: scripts/287.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to sort many lines by comparing the second word in each line? (65%) How to add a space after the 15 character of each line? (63%) How to delete all text after the second comma in each line? (62%) How to extract the text between first comma and second comma in each line? (61%) How to add first line to the start of each line? (60%) How to split a text file according to first word in each line? (58%) How to add random digit/chars at the end of each line? (58%) How to add a <BR> at the end of each line? (58%) |
Check Demo of Advanced search and replace |
| Keywords: |
| adding second after unit number filter number filter comma scope replace scope filter unit number add komma after number add komma adding first line adding first add comma after number after each line add words each line |