Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

529.Regular expression replace -- How to replace all consecutive spaces and tabs into one single comma in text file?

User: editor -- 2010-06-08          << 528  530 >>
Hits: 510
Type: Regular expression replace   
Search all Regular expression replace examples
Description:
How to replace all consecutive spaces and tabs into one single comma in text file?
Input Sample:
line1 word1 word2
line2 word3 word4
line3 word5 word6 word7
Output Sample:
line1,word1,word2
line2,word3,word4
line3,word5,word6,word7
Answer:
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 dialog
* in "search for pattern", enter:

* in "replace with pattern", enter a single comma
3. click 'Replace', done!

Similar Examples:
How to replace specific spaces into comma in each line of text file? (67%)
How to remove leading spaces and tabs in each line in multiple text files? (60%)
How to replace the first 3 spaces into comma in each line of text? (60%)
How to remove consecutive space and table keys at the end of each line? (59%)
How to combine multiple vcard file(vcf) into one single text/csv file? (58%)
How to remove/delete all lines ending by a comma(,) in a text file? (58%)
How to replace adjacent multiple spaces in a text files into one tab? (57%)
How to remove/delete consecutive duplicate lines in a text file? (56%)

Check Demo of Regular expression replace
Keywords:
tabs  abs  consecutive  onsecutive  cut  spaces  space  comma  single  regular expression  replace all spaces into one  replace consecutive spaces in text  replace comma  replace enter in text file  search and replace open source  search and replace text  replace pattern in text file  replace text pattern