Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1400.Advanced search and replace -- How to find numbers in specified location and sort them?

User: Dilip -- 2017-08-18          << 1399  1401 >>
Hits: 2638
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Sort according to descending order the tags in all lines by the numbers found in  
them 
Input Sample:
<num>1</num><num>90</num><num>70</num><num>69</num> 
<num>5</num><num>92</num><num>70</num><num>69</num>
Output Sample:
<num>92</num><num>90</num><num>70</num><num>70</num> 
<num>69</num><num>33</num><num>1</num><num>1</num>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace with pattern' to: 
 
3. click 'advanced' tab, set 'run following for each matched unit' to: 
 
4. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to extract numbers in specified position and join with comma? (68%)
How to count the number of specified part in each line? (65%)
How to search and sum the numbers at specified position in a text file? (65%)
How to find files with specified encoding and convert to utf8? (64%)
How to add a space at the specific location of each line? (62%)
How to add some number to the specific column in csv file? (61%)
How to find out all specified keywords from a file?
(58%)
How to expand all the numbers in the list and seperate them by comma? (58%)

Check Demo of Advanced search and replace
Keywords:
descending  find numbers  pop  desc  found  tags  tag  acc  find  order  find and replace all numbers in a text file  lines tags  find and replace all numbers  find tab  sort numbers in text file  order lines text file  sort all lines  replace tags