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
1035.Advanced search and replace -- How to add a space in the middle of the two characters in each line?
User:
firewolf -- 2012-12-18
<< 1034
1036 >>
Hits:
3356
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
Add a space in the middle of the two characters in each line, punctuation remain unchanged
Input Sample:
ÑàÈû´º²Ý£¬²ÅÄÛµÃÏó±ÌÂ̵ģ¬
ÇصØÉ£Ò¶£¬ÔçÒÑïÃܵÃѹÍä¡£
Output Sample:
Ñà Èû ´º ²Ý£¬²Å ÄÛ µÃ Ïó ±Ì ÂÌ µÄ£¬
ÇØ µØ É£ Ò¶£¬Ôç ÒÑ Ã¯ ÃÜ µÃ ѹ Íä¡£
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' window
* set 'search for pattern' to:
\w+
* set 'replace with pattern' to:
join(' ',split(//,$match))
3. click 'replace', done.
4. ctrl-s save to file.
Screenshot 1: Replace_Window
Similar Examples:
How to add a space after the 15 character of each line?
(79%)
How to add a space at the specific location of each line?
(66%)
How can I add a word before the last 10 characters of each line?
(65%)
How to add 3 spaces after every 9 characters in a text file?
(65%)
How to add first line to the start of each line?
(63%)
How to extract the first 10 and last 10 characters from each line?
(63%)
How to reverse the order of characters in each line of text?
(63%)
How to add a single space after each character in a text file?
(62%)
Check Demo of
Advanced search and replace
Keywords:
punctuation
unctuation
middle
add a space
two
space
characters
join
split
spli
two space
add space in a text file
replace add space
add space
add characters
two text
space line
replace space in text file