in reply to a regex to parse html tags
The '^' at the beginning of the character class creates a negated character class, which essentially means:$var =~ m%<HEAD>([^<]+)</HEAD%i; print $1, "\n";
You could also use HTML::Parser and the like, however if you are only trying to match the <HEAD> tags then using the module might be unnecessary.
Amel - f.k.a. - kel
|
|---|