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: 391
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 first line to the start of each line? (65%)
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 add a <BR> at the end of each line? (60%)
How to batch rename files by adding parenthesis for each number? (59%)
How to extract text from 'start' to 'end' in each line? (58%)
How to add a space after the 15 character of each line? (56%)
How to add random digit/chars at the end of each line? (55%)

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