Replace Pioneer Home   All Examples   Free Download

 New request --free  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: 2284
Type: Regular expression replace   
Search all Regular expression replace examples
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:
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: 
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 

Check Demo of Regular expression replace
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