in reply to help needed with match multiple lines

Can you provide a sample of the text you want to match?

Also, one suggestion... use the match operator with curly braces: m{}. You won't have to do as much escaping, and your regex will much more readable:

if (m{class="report".*&id=1">(.*?)</a.*"report"\swidth.*>(.*?)</td>$}s +i) { ... }

Replies are listed 'Best First'.
Re^2: help needed with match multiple lines
by Anonymous Monk on Jun 20, 2008 at 17:14 UTC
    Hi,
    Thank you for your help. I think the problem is probably with the undef $/, since it will run if I get rid of it and just match for one line.
    Thanks,
    Joice