Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

668.Advanced search and replace -- How to replace all numbers 93 in every line that contains gas?

User: editor -- 2010-12-01          << 667  669 >>
Hits: 1987
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace all numbers 93 in every line that contains gas?
Input Sample:
....other........93 
..........gas...93 
......gas......88 
....93......gas 
.................
Output Sample:
....other........93 
..........gas...mynumber 
......gas......88 
....mynumber......gas 
................. 
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 replace line that contains no space? (67%)
How to delete duplicate numbers in every line in text file? (63%)
How to replace all the numbers in a text file to the square value? (63%)
How to find the maximum number in each line that contains 3 numbers? (62%)
How to replace numbers with alphabets and reverse their order in all tags? (61%)
How to extract all lines that contain words in a list? (61%)
How to replace all accentued letter with the one without accent? 
(59%)
How to extract all lines that contain words A and B and C? (59%)

Check Demo of Advanced search and replace
Keywords:
contains  all numbers  every line  every  numbers  very  contain  enter  number  ber  contains numbers  line numbers  numbers line  search numbers  with numbers  replace numbers in text  replace every  text to numbers