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
709.Text sort -- How to sort each line of text by the order of reversed line?
User:
editor -- 2011-01-29
<< 708
710 >>
Hits:
1970
Type:
Text sort
Search all
Text sort
examples
Description:
How to sort each line of text by the order of reversed line?
For example:
in general 010 should come before 900 if compare from left to right.
but 900 should come before 010 if compare from right to left(reversed).
Input Sample:
010
110
210
700
800
900
Output Sample:
700
800
900
010
110
210
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 with pattern' to:
sort_by_func($match,'reverse')
3. click 'replace', done!
Screenshot 1: Replace_Window
Similar Examples:
How to sort the lines in a text files by the order of line length?
(70%)
How to output each 4 lines by reverse order?
(63%)
How to sort all the lines of a text file by order the multiple columns?
(63%)
How to sort the numbers in each line by the descending order in a text file?
(62%)
How to sort all the lines of a text file randomly?
(61%)
How to join all text file in a folder and remove all blank lines?
(60%)
How to convert each line of a text file to the new format?
(59%)
How to sort all lines of text by specified keyword?
(59%)
Check Demo of
Text sort
Keywords:
compare
reverse
comp
pare
order
before
bef
befor
text sort
right
text replace reversed
line compare
text compare
before each line
text left
text sort open source
replace before line
line before