in reply to Multiple line regex match
The textbook answer will be "Don't use a Regex to parse HTML, use a parser!" (such as HTML::Parser, HTML::TokeParser).
If you're really bent on doing it the quick and dirty (and wrong) way, you might want to look at turning your .*'s into .*?, and read on up greediness in perlre to see why.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiple line regex match
by dogen (Acolyte) on Nov 29, 2004 at 15:33 UTC |