Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

855.Text file parser -- How to extract the address of hyperlink whose anchor text contains "about"?

User: bruce lee -- 2011-09-15          << 854  856 >>
Hits: 1968
Type: Text file parser   
Search all Text file parser examples
Description:
how to extract the hyperlink with word "about"?
Input Sample:
<TD align=middle  
                        height=25><A  
                        href="show.asp?id=2"  
                        target=_self class="top">About us</A></TD>
Output Sample:
show.asp?id=2
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open html file 
2. ctrl-h open 'replace' dialog 
* set 'search for pattern' to: 
 
* set 'replace with pattern' to: 
 
* check option of "ignore cases" 
* uncheck option of "print unmatched unit" 
3. click 'replace', the specified link "show.asp?id=2" will be extracted. 
 
Note: if you use "Fast Replace" function: 
you should set "search": 
 
"replace": 
 
check option of "ignore cases", "reg exp", "cross line" and "extract"

Screenshot 1:  Replace_Window


Screenshot 2:  Fast_Replace_Window


Similar Examples:
How to extract email address from website or webpages? (56%)
How to extract all lines that contain "abc" from multiple files? (55%)
How to extract all email addresses from many text files? (55%)
How to extract all lines with numbers from many text files? (54%)
How to extract all IP address from a text file? (54%)
How to extract all html address from a text file? (53%)
How to extract all links which contain "shop" from many html files? (53%)
How to extract all lines with specified date range from text file? (52%)

Check Demo of Text file parser
Keywords:
anchor  hyperlink  asp  about  href  perl  extracte  ignore case  contains  ignore  how to extract hyperlink address  extract link address  replace word contains  contains word  address text html  if contains  extract address  html text link