Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

312.Advanced search and replace -- How to add a word "myword" at the end of each line?

User: editor -- 2009-01-27          << 311  313 >>
Hits: 2858
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to add a word "myword" at the end of each line?
Input Sample:
line1 111111111 
line2 222222 
line3 3333333
Output Sample:
line1 111111111myword 
line2 222222myword 
line3 3333333myword
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 
* Enter following under "replace with pattern": 
3. click "Replace", done! 
* ${match} means the matched line itself 
* \n means newline
Download Script:  scripts/

Screenshot 1:  Replace_Window

Similar Examples:
How to add a semicolon at the end of each line? (75%)
How to add a <BR> at the end of each line? (75%)
how to add several words such as @socks5 in the end of each line? (68%)
How to add different words at the beginning of each line? (67%)
How to add code to the same affix in each line? (66%)
How to insert a word or phrase to the begining of each line? (66%)
How to add random digit/chars at the end of each line? (65%)
How can I add a word before the last 10 characters of each line? (65%)

Check Demo of Advanced search and replace
chm  newline  end of each line  end of  means  mean  end  matched  new  enter  add word at the end of each line  replace newline  add word to end of line  add text to end of line  add text end of line  add word to end  add end of line  add text to the end line