Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

287.Advanced search and replace -- How to add a komma (,) after first and second words in each line?

User: Jaap van Boheemen -- 2008-10-29          << 286  288 >>
Hits: 2068
Type: Advanced search and replace   
Search all Advanced search and replace examples
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
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/

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 generate required format with given words in each line? (59%)
How to batch replace files with specified format in each line? (59%)
How to remove everything after the second specified keywords in each line? (59%)

Check Demo of Advanced search and replace
colums  first and second words  first and second word  after word  adding  unit number filter  number filter  second  comma  after  add komma after number  add komma  adding first line  add comma after  adding first  replace comma second line  replace after comma  after comma