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
1376.Text file parser -- How to extract all lines not containing 'ing' and 'and'?
User:
Dilip -- 2016-07-24
<< 1375
1377 >>
Hits:
3149
Type:
Text file parser
Search all
Text file parser
examples
Description:
Find all sentences using the greedy match (.*) but those matches should not contain
'ing' and 'and'
(.*) must not contain words ending with ing and the word. This is just to find and
detect only
Input Sample:
Fox and the Hen
Fox Hen Barn
Cunning Fox and Ox
Fox with Wolf and Jackal
Fox, Wolf, Ox
Output Sample:
Fox Hen Barn
Fox, Wolf, Ox
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 unit' to 'Line'
* set 'if=>' to:
matches($match, 'ing\b|\band\b')
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?
(69%)
How to extract all lines that contain words A and B and C?
(69%)
How to extract all lines do not contain a list of keywords?
(68%)
How to extract all lines that contain A, but not any of B C D?
(68%)
How to extract all lines containing words in specified file?
(67%)
How to extract all links that contain imprint from a webpage?
(66%)
How to extract all lines that containing ABC or DEF with original order?
(66%)
How to extract random lines containing specified words?
(65%)
Check Demo of
Text file parser
Keywords:
detect
sentences
matches
sentence
not containing
extract all lines
find and
find
extract all line
containing
using replace text containing
extract sentences containing
word ending
detect text 2
extract lines containing word
word find replace extract
sentences contain the word replace
extract all lines containing