Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

590.Advanced search and replace -- How to change the even sequence id of the comma to space in each line?

User: editor -- 2010-08-16          << 589  591 >>
Hits: 2006
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to change the even sequence id of the comma to space in each line?
Input Sample:
Output Sample:
word1,word2 word3,word4 word5,word6 
word1,word2 word3,word4 word5,word6 
word1,word2 word3,word4 word5,word6 
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file 
2. ctrl-h open replace window 
* set "replace unit" to "Chars" 
* set "replace scope" to "Line" 
* set "Unit number filter" to(start=2, step=2): 
* set "search for pattern" to a single comma 
* set "replace with pattern" to a single space 
3. click "Replace", done! 
Notes: above operation means to replace the 2,4,6,8,... comma to space in the scope of each line.

Screenshot 1:  Replace_Window

Similar Examples:
How to remove everything before first space in each line? (60%)
How to add a specified value to the sequence number in each line? (59%)
How to remove everything from start of line to the first comma in each line? (59%)
How to delete all text after the second comma in each line? (59%)
How to replace the first 3 spaces into comma in each line of text? (56%)
How to count and sort the frequency of each line? (56%)
How to batch split file delimitered by second comma in each line? (55%)
How to rename file by sequence id with specified pre-defined order? (55%)

Check Demo of Advanced search and replace
single space  even  sequence id  unit number filter  number filter  sequence  comma  operation  space  seq  replace each even line  space comma  replace space with comma  even line  replace text sequence number  replace text to sequence number  change text to single line  scope filter