Don't ask to ask, just ask | |
PerlMonks |
Re: Link Parser, something to be desired?by planetscape (Chancellor) |
on May 29, 2009 at 23:43 UTC ( [id://766986]=note: print w/replies, xml ) | Need Help?? |
Hi! Welcome back! First, don't use regexen to parse HTML. There are many nodes here on PM that will tell you why that's a Bad Idea™. Instead, use something like WWW::Mechanize find_all_links() or HTML::TreeBuilder look_down() to find your links. Second, had you done Google's advanced search against PerlMonks for "html remove link", you'd have found helpful nodes such as these: IMHO, Re: Regex: Strip <script> tags? looks quite promising. ;-) Good luck! HTH, planetscape
In Section
Seekers of Perl Wisdom
|
|