Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

460.Regular expression replace -- How to replace adjacent multiple spaces in a text files into one tab?

User: editor -- 2010-03-27          << 459  461 >>
Hits: 4540
Type: Regular expression replace   
Search all Regular expression replace examples
Description:
How to replace adjacent multiple spaces in a text files into one tab?
Input Sample:
name     age     email    mark 
Tom      18      tom@test1.com   88 
Mary   19       mary@test2.com   92 
Lucy    16      lucy@test3.com    95
Output Sample:
name<tab>age<tab>email<tab>mark 
Tom<tab>18<tab>tom@test1.com<tab>88 
Mary<tab>19<tab>mary@test2.com<tab>92 
Lucy<tab>16<tab>lucy@test3.com<tab>95
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: 
 
3. click 'Replace', done. 
 
Note:  
regular expression [\ \t]+ means consequence spaces and tables
Download Script:  scripts/460.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to combine multiple pairs of text files line by line? (62%)
How to replace strings in multiple text files with an increasing id start from 1? (62%)
How to replace a word only one time in multiple text files? (61%)
How to split multiple text files by 100 lines? (60%)
How to replace one content of same files with different contents ? (60%)
How to replace accented characters in text file with non accented equivalents? (59%)
How to remove the last 3 lines of multiple text files all at once? (59%)
How can I search and replace multiple strings in multiple files all at once? (58%)

Check Demo of Regular expression replace
Keywords:
consequence  multiple spaces  adjacent  table  spaces  sequence  files into one  space  seq  regular expression  regular expression for adjacent spaces  multiple adjacent spaces  replace adjacent spaces  replace multiple spaces with one tab  regular expression multiple spaces replace with tab  regular expression to replace multiple spaces with tab  replace multiple spaces with a tab  replace multiple spaces with