in reply to regexp over multiple lines
Use the /m modifier. This will treat the string as multiple lines, allowing you to use \n characters as part of your regexp.
See perlre for details and an example. Also, if you want to parse XML, you could look for a suitable module, it's usually a better way than to parse the file yourself using regexps.
Luke Jefferson
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regexp over multiple lines
by JavaFan (Canon) on Aug 03, 2011 at 07:43 UTC | |
by liverpaul (Acolyte) on Aug 03, 2011 at 08:08 UTC | |
by JavaFan (Canon) on Aug 03, 2011 at 08:31 UTC | |
by liverpaul (Acolyte) on Aug 03, 2011 at 09:12 UTC | |
by blindluke (Hermit) on Aug 03, 2011 at 08:17 UTC |