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
820.Regular expression replace -- How to remove all lines that contain some specific strings in a text file?
User:
editor -- 2011-07-12
<< 819
821 >>
Hits:
3877
Type:
Regular expression replace
Search all
Regular expression replace
examples
Description:
How to remove all lines that contain some specific strings in a text file?
All lines that contain any of following strings need to be removed:
hotmail.com
yahoo.com
gmail.com
dennys.com
ibm.com
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 'search for pattern' to:
hotmail\.com|yahoo\.com|gmail\.com|dennys\.com|ibm\.com
3. click 'replace', done!
4. ctrl-s save to file.
Screenshot 1: Replace_Window
Similar Examples:
How to remove lines containing specified words in a text file?
(77%)
How to remove all lines that contain ABC but not contain DEF in text file?
(77%)
How to extract all lines that contain specific words in a file?
(76%)
How to remove all lines that can be found in another file?
(72%)
How to remove all lines that contain one or more words in a list?
(72%)
How to findout all lines that contain specified words in multiple files?
(72%)
How to replace text containing some special symbols in a text file?
(69%)
How to make lines containing a specified string lowercase in a bunch of text
files?
(67%)
Check Demo of
Regular expression replace
Keywords:
gmail
yahoo
mail
specific
strings
remove all lines
remove all line
string
regular expression
expression
remove lines contain
replace lines that contain
remove all text following
replace strings
remove lines all
lines contain
remove lines
remove lines file a