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
708.Text file parser -- How to extract all specified date format from a text file?
User:
editor -- 2011-01-28
<< 707
709 >>
Hits:
500
Type:
Text file parser
Search all
Text file parser
examples
Description:
How to extract all specified date format from a text file?
Need to extract all format of date like 5:22 AM 11/08/2011, and remove all other contents.
Input Sample:
line1 ........
line2 . 5:22 AM 11/08/2001
line3 ..........
line4 ............. 5:04 PM 1/28/2011
Output Sample:
5:22 AM 11/08/2001
5:04 PM 1/28/2011
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' dialog
* in 'search for pattern', enter:
\d\d?:\d\d (AM|PM) \d\d?/\d\d?/\d\d\d\d
* in 'replace with pattern', enter:
$match\n
* uncheck option of 'Print Unmatched Units'
3. click 'replace', done!
4. ctrl-s save to file.
Screenshot 1: Replace_Window
Similar Examples:
How to extract all lines with specified date range from text file?
(85%)
How to extract all specified links from a html file?
(76%)
How to extract all upper cases words from a text file?
(74%)
How to batch extract specified lines from a text file?
(74%)
How to exract specified strings started with www from text file?
(73%)
How to extract all characters within specified char set from a text file?
(72%)
How to extract multiple lines in specified order from many text files?
(71%)
How to extract/parse all upper cases Acronyms from a text file?
(67%)
Check Demo of
Text file parser
Keywords:
ddd
contents
date format
content
unmatched
date
unmatch
print
extract all
text file parser
extract date from a text in all format
date extract from text file
extract date from text file
specified format
remove specified
search and replace date format in
replace date format
format date