Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Regex not working

by davorg (Chancellor)
on Jul 17, 2009 at 09:31 UTC ( #780979=note: print w/replies, xml ) Need Help??


in reply to Regex not working

Your regex is failing to take account of the newline characters.

However, parsing HTML with a regex is a bad idea. You should look at using a real HTML parser.

--

See the Copyright notice on my home node.

Perl training courses