Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

515.Advanced search and replace -- How to break down each line into 3 lines at specific position?

User: editor -- 2010-05-20          << 514  516 >>
Hits: 390
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to split each line into 3 lines at specific position?
I have a text files, how to split each line into 3 lines: 1st line contains 10 characters, 2nd contains 6 characters, and the 3rd contains the rest?
Input Sample:
0000000000AAAAAxxxxxxxxxxxx
1111111111BBBBByyyyyyy
2222222222CCCCCzzzzzzzzzzzz
...
Output Sample:
0000000000
AAAAA
xxxxxxxxxxxx
1111111111
BBBBB
yyyyyyy
2222222222
CCCCC
zzzzzzzzzzzz
...
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
* set 'Replace Unit' to 'Line'
* set 'Replace with Pattern' to:

3. click 'Replace', done!
Download Script:  scripts/515.rst.zip

Similar Examples:
How to split each line of text into 2 lines with same number of characters? (55%)
How to replace bytes in the specific postion of many binary files? (55%)
How to search and sum the numbers at specified position in a text file? (53%)
How to add a space at the specific location of each line? (53%)
How to create a text file including filenames in a folder with specified format? (52%)
How to change columns in each line to specified order in text file? (52%)
How to update many htmls by adding some paragraphs at the specific position? (52%)
How to extract and join text from multiple files with user defined format? (50%)

Check Demo of Advanced search and replace
Keywords:
position  3rd  1st  2nd  break  specific  toc  down  spli  split  split break  replace position  split text files open source  replace with specific  specific line  line break  10 lines  split lines