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
388.Text file parser -- How to extract/parse all lines with number greater than 40?
User:
editor -- 2010-01-10
<< 387
389 >>
Hits:
461
Type:
Text file parser
Search all
Text file parser
examples
Description:
How to extract/parse all lines with number greater than 40?
Input Sample:
replace 33
parser 42
advanced 38
user 55
extract 66
search 21
Output Sample:
parser 42
user 55
extract 66
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
* set 'Replace Unit' to 'Line'
* enter 'Replace with pattern' to:
$match\n
* enter 'If' to:
$match[2]>40
* uncheck 'Print Unmatched Unit' option
3. click 'Replace', done.
4. ctrl-s save to file.
Download Script:
scripts/388.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to extract all lines with numbers from many text files?
(69%)
How to extract all lines whose line numbers are multiple of 3?
(67%)
How to extract all numbers that are greater than 60 in a text file?
(66%)
How to extract all telephone numbers from a text file?
(62%)
How to delete all lines with column B greater than 90 in multiple csv files?
(61%)
How to extract all lines with specified date range from text file?
(60%)
How to extract all lines that has more than 4 columns from csv file?
(59%)
How to extract all lines longer than 80 characters from a text file?
(59%)
Check Demo of
Text file parser
Keywords:
greater
parse all lines
unmatched
unmatch
print
text file parser
parse
file parser
pars
how to extract
open source text file parser
text file parser open source
text parser open source
text file parser open
text parser
file number
all text
replace text pattern