#20631 [Opn->Bgs]: PCRE_CASELESS doesn't work
| From: | iliaa@php.net | Date: | Wed, 27 Nov 2002 06:22:42 +0000 |
| Subject: | #20631 [Opn->Bgs]: PCRE_CASELESS doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25937@lists.php.net to get a copy of this message | ||
ID: 20631
Updated by: iliaa@php.net
Reported By: matt@zevi.net
-Status: Open
+Status: Bogus
Bug Type: PCRE related
Operating System: Linux 2.4.19
PHP Version: 4.3.0RC1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Unless you specify the 'i' flag your regular expression will NOT be
case-insensetive. For example the regex you've shown should appear like
this:
'/\(name\)(?i)/i'
If you want it not to be case sensetive.
Previous Comments:
------------------------------------------------------------------------
[2002-11-25 16:50:48] matt@zevi.net
preg_replace():
This regex was case insensitive in 4.2.3, but is case sensitive in
4.3.0RC1: '/\(name\)(?i)/'
Was not able to test further because I installed it on a production
box, and had to revert to 4.2.3...
I had the search and replace values in arrays which I then passed to
preg_replace(). This may have some effect on it. I didn't test just
passing a string.
Matt
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20631&edit=1