in reply to How would I find a piece of html from a sourcefile.html?
This regular expression will grap the entire tag, brackets and all.
This regex will leave out the brackets and print only the string inside them:$data =~ m/(<[^>]+>)/; print $1, "\n"; # print the tag
Use modifiers, or loops as you need too. -kel$data =~ m/<([^>]+)>/; print $1, "\n"; # print the tag
In Section
Seekers of Perl Wisdom