<pre>
<?
$mem = "<pre>hello world\nI love you all!</pre>";
$re = "/<pre>(.+?)<\\/pre>/im";
preg_match_all($re, $mem, $match);
var_dump($match);
?>
</pre>
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 (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP] PCRE Multiline modifier _lallous
- Re: [PHP] PCRE Multiline modifier Andrey Hristov
- Re: [PHP] PCRE Multiline modifier _lallous

