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
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:
339
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:
ABC|DEF
* in 'replace with pattern', enter:
$match\n
* 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 "abc" from multiple files?
(68%)
How to extract all lines that contain words A and B and C?
(68%)
How to extract all lines that contain chem, but not any of org and cn?
(67%)
How to extract all lines that contain A, but not any of B C D?
(67%)
How to remove all lines that contain ABC but not contain DEF in text file?
(65%)
How to extract all lines that has more than 2 numbers?
(64%)
How to remove all lines that contain one or more words in a list?
(63%)
How to extract all lines that has no leading spaces?
(62%)
Check Demo of
Text file parser
Keywords:
abc
order
containing
unmatched
unmatch
print
extract all
text file parser
parse
file parser
extract all lines containing
extract all lines of text containing
extract lines containing text
extract lines containing
extract lines containing pattern
text file search extract lines
lines containing
text parser to extract lines