Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

937.Advanced search and replace -- How to move a string from the beginning of the line to the end of the line?

User: Soly -- 2012-04-14          << 936  938 >>
Hits: 1754
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to move a string from the beginning of the line to the end of the line?
Input Sample:
!abc
def
!xyz
Output Sample:
abc!
def
xyz!
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume you want to move all "!" from the beginning of the line to the end of the line.
1. ctrl-o open the text file
2. ctrl-h open 'replace' dialog
* set 'replace unit' to 'Chars'
* set 'replace scope' to 'Line'
* set 'search for pattern' to:

* set 'replace with pattern' to:

3. click 'replace' button, done!

Screenshot 1:  Replace_Window


Similar Examples:
How to add a star at the beginning and a hash at the end of line? (78%)
How to move a string from the end of the line to the beginning of the line? (72%)
How to remove the trailing blank lines in the end of file? (71%)
How to remove space at beginning of the line? (68%)
How to move the last line to the beginning for multiple text files? (67%)
How the remove text from the beginning of each line before a certain string? (64%)
How to move the specified line to the end in multiple files? (61%)
How to decrease the first 4 digits in the beginning of each line by 1000? (60%)

Check Demo of Advanced search and replace
Keywords:
string  a string  replace scope  scope  beginning  ass  sum  chars  begin  end of  move the end of string  move string  beginning end  beginning of line  beginning line  text string  string with  replace a string