Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1010.Advanced search and replace -- How to add a star at the beginning and a hash at the end of line?

User: Aaron Allan -- 2012-10-03          << 1009  1011 >>
Hits: 1897
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
I'm trying to modify id 301 to insert a word or character at the end of the line as well: 
Input Sample:
The little boy ran away. 
The quick brown fox jumped. 
etc.
Output Sample:
*  The little boy ran away.  # 
*  The quick brown fox jumped.  # 
* etc.  #
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace unit' to 'Line' 
* set 'replace with pattern' to: 
 
3. click "replace", done. 
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to move a string from the beginning of the line to the end of the line? (78%)
How to add a line number at the beginning of each line? (68%)
How to add different words at the beginning of each line? (66%)
How to remove space at beginning of the line? (63%)
How to add a semicolon at the end of each line? (62%)
How to add a space in the middle of the two characters in each line? (60%)
How to move a string from the end of the line to the beginning of the line? (60%)
How to delete all blank/space at the beginning of each line? (59%)

Check Demo of Advanced search and replace
Keywords:
301  end of line  at the beginning  beginning  insert  character  begin  end of  end  char  insert character at end of line  insert a character  insert character  add beginning and end file  replace end word beginning  add character to end of a line  add character to end of line  insert beginning line