Don't ask to ask, just ask | |
PerlMonks |
Re: extracting attribute from HTML tagby svsingh (Priest) |
on May 26, 2003 at 06:37 UTC ( [id://260782]=note: print w/replies, xml ) | Need Help?? |
If that's all you're trying to do, then a simple string match should work for you. For example:
That returns:
For other similar examples, you may want to check out Teach Yourself Perl in 21 Days: Day 10 (img.pl). That example shows a decent (but not comprehensive) way to extract attributes from HTML tags. Hope this helps.
In Section
Seekers of Perl Wisdom
|
|