in reply to help needed with match multiple lines
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 |