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%
>
>
>
&
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
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
3 matches
Mail list logo