Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

594.Advanced search and replace -- How to find the maximum number in each line that contains 3 numbers?

User: editor -- 2010-08-21          << 593  595 >>
Hits: 2632
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to find the maximum number in each line that contains 3 numbers?
Input Sample:
1 2 9 
2 3 8 
4 5 1 
6 7 2
Output Sample:
max(1,2,9)=9 
max(2,3,8)=8 
max(4,5,1)=5 
max(6,7,2)=7 
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 'Line' 
* in 'search for pattern', enter: 
 
* in 'replace with pattern', enter: 
 
3. click 'replace', done!

Screenshot 1:  Replace_Window


Similar Examples:
How to find missing numbers from a list of numbers? (66%)
How to replace all numbers 93 in every line that contains gas? (64%)
How to find out the maximum value in each line for multiple csv file? (63%)
How to multiply numbers in each line after a certain comma? (61%)
How to add a number in each line indicating number of words in this line? (61%)
How to add a '*' at the beginning of each line that contains keyword "PASS"? (60%)
How to find maximum and minimum number out of specified column? (59%)
How to replace line that contains no space? (58%)

Check Demo of Advanced search and replace
Keywords:
maximum  123  max  contains  find  numbers  fin  contain  enter  number  find and replace maximum  contains numbers  find numbers  contains number  line numbers  numbers line  find text  find and replace