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
715.Text file parser -- How to extract all valid ip address from a list of ip addresses?
User:
editor -- 2011-02-12
<< 714
716 >>
Hits:
588
Type:
Text file parser
Search all
Text file parser
examples
Description:
How to extract all valid ip address from a list of ip addresses?
Input Sample:
121.38.4.8
1366.2.5.22
4.1.173.33
8.a.55.4
192.168.1.1
Output Sample:
121.38.4.8
4.1.173.33
192.168.1.1
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open text file that contains ip addresses
2. ctrl-h open 'replace window'
* set 'search for pattern' to:
\b(\d+)\.(\d+)\.(\d+)\.(\d+)\b
* set 'replace with pattern' to:
$match\n
* set 'if' to:
$var[1]>0 && $var[1]<256 && $var[2] >=0 && $var[2]<256 && $var[3] >=0 && $var[3]<256 && $var[4] >=0 && $var[4]<256
* uncheck option of 'print unmatched unit'
3. click 'replace', done.
4. ctrl-s save to file.
Screenshot 1: Replace_Window
Similar Examples:
How to extract all html address from a text file?
(68%)
How to extract all IP address from a text file?
(67%)
How to generate IE favorite items from a list of url addresses?
(66%)
How to remove all the unavailable addresses from a list of web pages?
(62%)
How to extract email address from website or webpages?
(60%)
How to sort all lines of ip addresses in a text file?
(59%)
How to extract all distinct parent folder names from a list of files?
(57%)
How to filter out valid email addresses among thousands of Email addresses?
(57%)
Check Demo of
Text file parser
Keywords:
ddd
var
ip address
unmatched
unmatch
from a list
address
addr
print
extract all
list of ip addresses valid
list of valid ip addresses
extract list of ip addresses from a text file
extract ip list from text file
extract ip addresses from text file
extract all ip addresses from file
extract all ip addresses from a file
extract all ip addresses from text