in reply to Pulling the content of HTML tags
this might need some debugging... you also probably have to worry about finding quotes within the tags as well... but this is the basic idea.sub find_tags { $tag = $_[0]; $tag =~ m/<(.*?)>(.*?)<.*?>/ print "$1 : $2"; if ($2 =~ m/</) {find_tags($2);} }
|
|---|