in reply to Re: regexp over multiple lines
in thread 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.Bullshit.
You don't need any modifier to use \n in your regexp. The /m modifier will change the meaning of ^ and $, irrelevant for the OP. He may need the /s modifier, which makes the dot match a newline.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regexp over multiple lines
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 | |
|
Re^3: regexp over multiple lines
by blindluke (Hermit) on Aug 03, 2011 at 08:17 UTC |