in reply to help needed with match multiple lines
And the thing is, your code works for multiple lines. When I substituted your regex with /(class).*(pattern)/si, and planted an appropriate file with 'class' and 'pattern' each on its own line, the regex matched and list.txt had a line in it.
So you don't have a problem with multiline matching, you have a problem with your regex not matching the text you want to match.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help needed with match multiple lines
by Anonymous Monk on Jun 20, 2008 at 17:43 UTC | |
by jethro (Monsignor) on Jun 20, 2008 at 19:10 UTC |