in reply to meta parsing problems
It won't work with reversed attributes, single quoted attributes, and lots more... Use a module. I hear HTML::Parser is nice.while($content =~ /<meta\s+name=\"(.+?)\"\s+content=\"(.+?)\">/ig) +{ $count++; $meta_results[$count] = "$1::$2"; }
Good luck
Updated: thought $content really was a filehandle, but it wasn't.
|
|---|