| User: editor -- 2010-06-08 |
| Hits: 84 |
| 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" 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 consecutive space and table keys at the end of each line? (59%) 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 search and replace multiple terms with 1 common term in text file? (55%) How to replace the second character of every line to 4 in a text file? (55%) How to reverse all cases of letters in a text file? (55%) How to replace every 3 instances found in a text file? (54%) |
Check Demo of Regular expression replace |