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
259.Advanced search and replace -- How to remove/delete all characters except number and spaces in a text file?
User:
editor -- 2008-08-27
<< 258
260 >>
Hits:
3395
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
How to remove/delete all characters except number and spaces in a text file?
Input Sample:
abc 012 def 123
ddd 222 uuu 333
Output Sample:
012 123
222 333
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
Steps:
1. ctrl-o to open your text file
2. press ctrl-h to open 'Replace' dialog
1)set 'search for pattern' as:
[^\s\d]
2)set nothing in 'replace with pattern'
3. Click 'Replace'
Note: [^\s\d] means characters other than spaces and digits
Download Script:
scripts/259.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to remove/delete all English characters/letters in a text file?
(77%)
How to remove/delete all commas from comma separated numbers in a text file
(72%)
How to remove/delete all multi-byte characters in a text file?
(72%)
How to remove/delete all single-byte characters in a text file
(71%)
How to remove/delete all symbols in a text file?
(70%)
How to remove/delete all blank lines in a text file?
(70%)
How to remove/delete all lines ending by a comma(,) in a text file?
(68%)
How to remove/delete all symbols and numbers in a text file, only leave text?
(66%)
Check Demo of
Advanced search and replace
Keywords:
digits
except
all characters
spaces
digit
dig
delete all
space
characters
delete
replace all characters except
replace all digits
search for digits
except search text
text search replace with nothing
replace pattern with nothing
replace characters
replace all number text file