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: 5639
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 replace or remove 3 lines randomly in a text file? (56%)

Check Demo of Regular expression replace
Keywords:
tabs  consecutive spaces  abs  consecutive  onsecutive  cut  spaces  comma  space  single  replace all spaces into one  replace all consecutive spaces with tabs  replace spaces with tabs in text file  replace tabs and spaces with comma  replace consecutive spaces in text  text file replace tabs with one  replace consecutive spaces  replace all spaces with one comma