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
1234.Advanced search and replace -- How to delete all lines that contain only a word and a blank?
User:
xiaoming -- 2014-08-16
<< 1233
1235 >>
Hits:
3245
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
To delete a word+blank
Input Sample:
_:blank
a.txt
3_April_2011
4_April_2011
12_
5_
8_May
12
Output Sample:
b.txt
3_April_2011
4_April_2011
8_May
12
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:
^\S+ $
3. click 'replace', done.
Screenshot 1: Replace_Window
Similar Examples:
How to extract all lines that contain words in a list?
(76%)
How to remove all lines that contain one or more words in a list?
(76%)
How to remove all the lines that do not contain any of words in a list?
(75%)
How to extract all lines that contain words A and B and C?
(74%)
How to extract all lines that contain specific words in a file?
(72%)
How to extract all lines that contain chem, but not any of org and cn?
(70%)
How to find out all files that contain all words of A, B and C?
(70%)
How to remove all lines that contains more than one word?
(70%)
Check Demo of
Advanced search and replace
Keywords:
delete all lines that contain
delete all lines
blank
delete all
how to delete
delete
delet
dele
del
contain
delete blank lines
delete blank
replace all blank lines
lines contain word
delete word
replace lines that contain
replace blank lines
blank lines