Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

140.Advanced search and replace -- How to batch remove/delete non-fixed text in a text file?

User: editor -- 2008-05-21
Hits: 166
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
I have some document has following text like:
"characters in chapter: 2288 last update: 08-02-15 07:57", how to batch removed these text.
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-o open source file.
2. ctrl-h open 'Replace' dialog,
in 'Replace' window, 
fill in 'Search for Pattern':

fill nothing in 'Replace with Pattern'
3. click 'Replace'
Note: .*? matches any text, ..:.. match any text like 07:57

If need process many files, user can click 'Batch..' in step 3, to open 'Batch Runner', and click 'Pick Files' to select multiple files, and click 'Batch Replace' to finish the operation. 
Download Script:  scripts/140.rst.zip

Similar Examples:
How to batch remove/delete first and last line of many text files? (72%)
How to batch remove/delete first 8 lines of many files? (70%)
How to remove/delete unnecessary line breaks in a text file? (69%)
How to remove/delete all blank lines in a text file? (69%)
How to batch remove/delete first 500 bytes of many binary files? (68%)
How to remove/delete all English characters in a text file? (68%)
How to batch remove/delete one blank line between each two lines in text file? (68%)
How to remove/delete all symbols in a text file? (67%)

Check Demo of Advanced search and replace