Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

138.Advanced search and replace -- How to batch add prefix and surfix for each line?

User: editor -- 2008-05-20          << 137  139 >>
Hits: 1460
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to batch add prefix and surfix for each line?
Input Sample:
211434 
143434 
XXXXXX 
Output Sample:
abc211434def 
abc143434def 
abcXXXXXXdef
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' to:

* set 'Replace with pattern' to:

3. click 'Replace', finish.
Download Script:  scripts/138.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to add code to the same affix in each line? (68%)
How to batch replace files with specified format in each line? (65%)
How to add first line to the start of each line? (65%)
How to batch insert filename at start/beginning of each lines? (62%)
How to add a space at the specific location of each line? (61%)
How to add a semicolon at the end of each line? (61%)
How to delete the same field in each line? (60%)
How to add a specified value to the sequence number in each line? (60%)

Check Demo of Advanced search and replace
Keywords:
surfix  batch add prefix  add prefix  how to batch add prefix  prefix  abc  fix  fin  batch add  replace page  add prefix to each line  batch add prefix to each line  batch for each line add prefix  search and replace prefix  add prefix line batch  search and replace batch open source  open source batch replace  add page