Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

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

User: Soly -- 2012-04-14          << 937  939 >>
Hits: 1802
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to move a string from the end of the line to the beginning 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 need to move "-" from end of line to the start of line
1. ctrl-o open source 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', 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? (72%)
How to remove space at beginning of the line? (70%)
How to move the last line to the beginning for multiple text files? (67%)
How to add a line number at the beginning of each line? (65%)
Is there any way to strip/add the line number at the beginning of each line? (63%)
How to insert a word or phrase to the begining of each line? (62%)
How to add number at end according to domain name at the begin of line? (61%)
How to add a star at the beginning and a hash at the end of line? (60%)

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