| User: editor -- 2010-02-19 |
| Hits: 108 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to extract/parse all http addresses from text/html file? I have some html files that contain some web addresses that started from http, how to extract all the http addresses and form a new text file? |
| Input Sample: |
| .... http://www.mind-pioneer.com ...<a href="http://www.test.com"> .... |
| Output Sample: |
| http://www.mind-pioneer.com http://www.test.com |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1. ctrl-o open html/text file 2. ctrh-h open 'replace' window * in 'search for pattern', fill: * in 'replace with pattern', fill: * uncheck 'Print unmatch unit' option 3. click 'Replace', done! 4. ctrl-s save to file. Note: uncheck 'Print unmatched unit' option means extract/parse the matched text ony. |
| Download Script: scripts/425.rst.zip |
Similar Examples: |
| How to extract all IP address from a text file? (77%) How to extract all email addresses from many text files? (73%) How to extract/parse all upper cases Acronyms from a text file? (73%) How to extract all telephone numbers from a text file? (63%) How to extract all image links from a html file? (63%) How to parse all the fields in different segment from a text file? (61%) Need to extract all links from html file (61%) Can I translate all the IP address to country in a text file? (60%) |
Check Demo of Text file parser |