Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

494.Advanced search and replace -- How to reverse the order of characters in each line of text?

User: editor -- 2010-05-01
Hits: 80
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to reverse the order of characters in each line of text?
Input Sample:
This is line 1 to reverse
This is line 2 to reverse
...
Output Sample:
esrever ot 1 enil si sihT
esrever ot 2 enil si sihT
...
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' window
* set 'replace unit' to 'Lines'
* enter 'replace with pattern' like:
 
or

3. click 'Replace', done!
4. ctrl-s save to file.
Download Script:  scripts/494.rst.zip

Similar Examples:
How to remove every other characters on each line of text? (84%)
How to remove the first 10 characters of each line in text file? (80%)
How to reverse the order of all the lines in a text file? (74%)
How to replace the second character of every line to 4 in a text file? (67%)
How to add a space after the 15 character of each line? (67%)
How can I add a word before the last 10 characters of each line? (63%)
How to reverse a text file by characters? (63%)
Reverse order the 2,3,4,5 words of each line. (63%)

Check Demo of Advanced search and replace