Re: [PHP] PCRE Multiline modifier

2001-08-27 Thread _lallous
string(11) "hello world" > } > } > > In this case it's better your pattern to be : "|(.+?)|is" > / was changed to |, and there is no need to escape. > > Andrey Hristov > IcyGEN Corporation > http://www.icygen.com > 99% > > > &

Re: [PHP] PCRE Multiline modifier

2001-08-27 Thread Andrey Hristov
was changed to |, and there is no need to escape. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "_lallous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 5:43 PM Subject: [PHP] PCRE Multiline m

[PHP] PCRE Multiline modifier

2001-08-27 Thread _lallous
hello world\nI love you all!"; $re = "/(.+?)<\\/pre>/im"; preg_match_all($re, $mem, $match); var_dump($match); ?> and the output is: array(2) { [0]=> array(0) { } [1]=> array(0) { } } if i remove the \n in the $mem var everything works okay. -- PHP General Mailing List