"be consistent" | |
PerlMonks |
extracting links from textby Anonymous Monk |
on Sep 04, 2001 at 21:46 UTC ( [id://110101]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm using the following regular expression (borrowed from the Perl Cookbook) to extract links from html: I am wondering if anyone has a suggestion as to how I would extract a list of links from a block of text without any html tags, i.e "this is a link, http://bob.com/page" and "so is this, but with a query string and a trailing period, http://bob.com/page?elem=val&elem2=val2.". I'm reading through the perlre documentation, but I'm not very good yet, so any suggestions would be helpful. Thanks!
Back to
Seekers of Perl Wisdom
|
|