Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
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:
482
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:
[\ \t]+
* in replace with pattern, enter:
\t
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 replace a word only one time in multiple text files?
(61%)
How to replace one content of same files with different contents ?
(60%)
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%)
How to replace file content in multiple files with corresponding filename?
(58%)
How to search and replace strings in multiple utf-8 encoded text files?
(57%)
How to delete the second column in multiple text files?
(57%)
How to remove all path information for multiple http addresses in text file?
(57%)
Check Demo of
Regular expression replace
Keywords:
consequence
multiple spaces
adjacent
table
spaces
space
sequence
seq
regular expression
tab
replace multiple spaces with
regular expression multiple spaces
regular expression replace multiple spaces
replace multiple spaces
replace with pattern regular expression
regular expression for replace in
search multiple text files
replace text in multiple files