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: 622
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
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
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
* Enter following under "replace with pattern":

3. click "Replace", done!

Note:
* ${match} means the matched line itself
* \n means newline
Download Script:  scripts/312.rst.zip

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 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%)
How to add a line number at the beginning of each line? (63%)
How to add first line to the start of each line? (59%)

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