if($stuff =~ /<head>(.*?)<\/head>/s){ $what_i_want = $1; } if($stuff =~ /<head>([^<]+)<\/head>/s){ $what_i_want = $1; }
In reply to Re: a regex to parse html tags
by Anonymous Monk
in thread a regex to parse html tags
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |