in reply to a regex to parse html tags
if($stuff =~ /<head>(.*?)<\/head>/s){ $what_i_want = $1; } if($stuff =~ /<head>([^<]+)<\/head>/s){ $what_i_want = $1; } [download]