Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

419.Text file parser -- How to extract all IP address from a text file?

User: editor -- 2010-02-12          << 418  420 >>
Hits: 846
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract all IP address from a text file?
Input Sample:
172.1.1.2 testing 173.2.2.3 ok
122.3.3.8 152.2.2.2
Output Sample:
172.1.1.2
173.2.2.3
122.3.3.8
152.2.2.2
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:

in 'Replace with pattern', enter:

Uncheck 'Print Unmatched Unit' option
3. click 'replace', done.
4. ctrl-s save to file.
Download Script:  scripts/419.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to extract all html address from a text file? (92%)
How to extract all email addresses from many text files? (83%)
How to extract all upper cases words from a text file? (79%)
How to extract/parse all http addresses from text/html file? (77%)
How to add a port 80 for all IP addresses in a text file? (76%)
How to sort all lines of ip addresses in a text file? (75%)
How to extract all telephone numbers from a text file? (74%)
Can I translate all the IP address to country in a text file?
(74%)

Check Demo of Text file parser
Keywords:
ddd  ip address  unmatched  unmatch  address  addr  print  text file parser  parse  file parser  open source text file parser  text file parser open source  text parser open source  text file search extract  extract from text  text file parser open  text parser  extract text