Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

129.Advanced search and replace -- How to add a space after the 15 character of each line?

User: editor -- 2008-05-18          << 128  130 >>
Hits: 478
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to add a space after the 15 character of each line?
Input Sample:
1234567890abcde1234567890abcde
aaaaabbbbbcccccdddddeeeeefffff
111112222233333444445555566666
Output Sample:
1234567890abcde 1234567890abcde
aaaaabbbbbccccc dddddeeeeefffff
111112222233333 444445555566666
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. press ctrl-o open source file
2. press ctrl-h open 'Replace' dialog
in 'Replace' page,
* set 'Replace unit' to 'Line'
* set 'Search for pattern':

* set 'Replace with pattern':

3. click 'Replace', done.

Note: chars($match,1,15) means 1 to 15 characters of matched line
chars($match,16,-1) means 16 to last characters of matched line
Download Script:  scripts/129.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to add 3 spaces after every 9 characters in a text file? (77%)
How to add a single space after each character in a text file? (74%)
How can I add a word before the last 10 characters of each line? (71%)
How to add a space at the specific location of each line? (70%)
How to extract the first 10 and last 10 characters from each line? (67%)
How to reverse the order of characters in each line of text? (64%)
How to add a semicolon at the end of each line? (64%)
How to remove the first 10 characters of each line in text file? (63%)

Check Demo of Advanced search and replace
Keywords:
space after  after  space  last  las  characters  chars  character  means  mean  last space  add space after each character  a space after each character  replace space after each character  replace after space  after each character  after each line  replace add space