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
688.Text file parser -- How to extract all numbers that are greater than 60 in a text file?
User:
editor -- 2011-01-01
<< 687
689 >>
Hits:
3237
Type:
Text file parser
Search all
Text file parser
examples
Description:
How to extract all numbers that are greater than 60 in a text file?
Input Sample:
37 26 85 47
93 100 130 72 38 15
Output Sample:
85
93
100
130
72
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' window
* in 'search for pattern', enter:
\d+
* in 'replace with pattern', enter:
$match\n
* in 'if=>', enter:
$match > 60
* uncheck option of 'print unmatched unit'
3. click 'Replace', done!
Screenshot 1: Replace_Window
Similar Examples:
How to extract all lines with specified date range from text file?
(70%)
How to extract all lines longer than 80 characters from a text file?
(70%)
How to extract all lines with numbers from many text files?
(69%)
How to extract all words that has any letter doubled in a text file?
(69%)
How to extract all lines that has more than 4 columns from csv file?
(68%)
How to count the number of words that start with "ea" in a text file?
(67%)
How to extract all telephone numbers from a text file?
(66%)
How to extract/parse all lines with number greater than 40?
(66%)
Check Demo of
Text file parser
Keywords:
greater
all numbers
unmatched
unmatch
numbers
print
extract all
text file parser
file parser
parser
if greater than
extract numbers
open source text file parser
text file parser open source
text parser open source
open source text parser
open source file parser
extract replace source text