in reply to REGEX for url
It looks like you're just trying to extract values of href= attributes from anchor tags (i.e. the "..." from <a href="...">) in html data.
I'm surprised that no one yet has mentioned that there are CPAN modules for doing exactly that - e.g. HTML::LinkExtor, among others. (I haven't had occasion to use them myself. but to do what you're doing, I'd start with one of those.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: REGEX for url
by wrkrbeee (Scribe) on Apr 25, 2016 at 21:46 UTC | |
by graff (Chancellor) on Apr 25, 2016 at 21:52 UTC |
In Section
Seekers of Perl Wisdom