Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
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
<< 493
495 >>
Hits:
3403
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"
on windows platform 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:
chars_r($match,1,-1)\n
or
reverse($match)\n
3. click 'Replace', done!
4. ctrl-s save to file.
Download Script:
scripts/494.rst.zip
Screenshot 1: Replace_Window
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 reverse the order of the first column in text file?
(70%)
How to reverse all the words in each line of a csv file?
(67%)
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 to rearrange the words in each line and top of file?
(64%)
Check Demo of
Advanced search and replace
Keywords:
reverse the order
reverse
order
characters
chars
character
char
lines
enter
each line
reverse characters
reverse line
search text file in reverse
replace in reverse text
reverse text
line order
order line
replace characters