Comment 2 for bug 304555

Revision history for this message
Robb Munson (r.munson) wrote :

Here is a comment from one of the guys in #perl as to what happened

<ology> robb_m: Obviously, my ($description) = $content =~ m/<h3>DESCRIPTION<\/h3><pre>\s*(.*?)\s*<\/pre>/is; is not working. Also, don't parse HTML with regular expressions..

<ology> perl -wle'$_="<h3>DESCRIPTION<\/h3><pre> abc 123 <\/pre>"; print /<h3>DESCRIPTION<\/h3><pre>\s*(.*?)\s*<\/pre>/is ? "Y: $1" : "N"' # works just fine. $content is not what you think it is.