From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.2
PHP version: 4.0.6
PHP Bug Type: *Regular Expressions
Bug description: preg_match doesn't return newlines in match array
This is not a core dump, but rather an output problem with preg_match.
Here is a short script:
$someline = "Here is some line.\n";
if ( preg_match('/Here(.*)$/',$someline,$matches) ) {
$out = $matches[1];
}
print "<pre>[$out]</pre>";
$out now contains no newline when this clearly should be included!
--Liam
--
Edit bug report at: http://bugs.php.net/?id=12688&edit=1
--
PHP Development 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]