Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

683.Text file parser -- How to extract all lines that containing ABC or DEF with original order?

User: editor -- 2010-12-23          << 682  684 >>
Hits: 1629
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract all lines that containing ABC or DEF with original order?
Input Sample:
1................DEF
2.....ABC....
3.............
4...DEF.....
5........ABC..........
6.....................
Output Sample:
1................DEF
2.....ABC....
4...DEF.....
5........ABC..........
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:

* uncheck option of "Print unmatched unit"
3. click "Replace", done!
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to extract all lines that contain words in a list? (68%)
How to extract all lines that contain specified words or phrases? (68%)
How to extract all lines that contain "abc" from multiple files? (68%)
How to extract all lines that contain words A and B and C? (68%)
How to extract lines that contains 'HPWS' or 'HPWP' in a file? (67%)
How to extract all lines not containing 'ing' and 'and'? (67%)
How to extract all links that contain imprint from a webpage? (67%)
How to extract all lines that contain chem, but not any of org and cn? (67%)

Check Demo of Text file parser
Keywords:
abcd  abc  extract all lines  order  containing  extract all line  unmatched  unmatch  print  extract all  extract all lines containing  extract all lines of text containing  extract lines containing text  extract lines containing  extract lines containing pattern  extract all text containing  order lines text file  replace original