Thanks!
But I still nned to escape, but only once. I mean '<\/pre>' instead of
'<\\/pre>'.
"Andrey Hristov" <[EMAIL PROTECTED]> wrote in message
004401c12f02$ae5a2d30$0b01a8c0@ANDreY">news:004401c12f02$ae5a2d30$0b01a8c0@ANDreY...
> I think that is the solution:
>
>$mem = "hello world\nI love
I think that is the solution:
hello world\nI love you all!";
$re = "/(.+?)<\\/pre>/is";
preg_match_all($re, $mem, $match);
var_dump($match);
?>
The modifier which will work for you is 's', not 'm'. Look at the manual at :
http://www.php.net/manual/en/pcre.pattern.modifiers.php
This prod
2 matches
Mail list logo