User: Soly -- 2014-10-08 << 1258 1260 >> |
Hits: 2955 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
How to extract links from a web page and add the page title at the end of it? |
Input Sample: |
Web page stuff <title>X</title> Web page stuff and Links <link>http://zzz</link> <link>http://zzz</link> <link>http://zzz</link> Web page stuff |
Output Sample: |
http://zzz - X http://zzz - X http://zzz - X |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open web page file 2. ctrl-h open 'replace' dialogue * set 'search for pattern' to: * set 'replace with pattern' to: * uncheck 'print unmatched unit' option * click 'advanced' tab, set 'run following for each matched unit' to: 3. click 'replace', done. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |