Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

658.Advanced search and replace -- How to split each line of text into 2 lines with same number of characters?

User: editor -- 2010-11-20          << 657  659 >>
Hits: 348
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to split each line of text into 2 lines with same number of characters?
Input Sample:
01234567890123456789
1234512345
abcdefghijklmn
Output Sample:
0123456789
0123456789
12345
12345
abcdefg
hijklmn
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' window
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

3. click 'replace', done!

Screenshot 1:  Replace_Window


Similar Examples:
How to split a large text file into specified various number of lines? (60%)
How to randomly replace one line from line 7 to line 10 with the same numbers of -? (59%)
How to split text file by number of bytes? (59%)
How to remove/delete line breaks of all lines which has more than 20 characters? (58%)
How to reverse a text file by characters? (57%)
How to split a text file into multiple files with maximum 100k bytes? (56%)
How to exchange the 1st and 2nd lines in each paragraph? (55%)
How to split one line into 3 to 5 sentences ended by period randomly? (54%)

Check Demo of Advanced search and replace
Keywords:
length  toc  same  spli  split  characters  chars  character  lines  char  split number of line  split lines  split 1 line to lines  number of lines  split text line  text split line  split line  split text