Bug #17889 Updated: searhing for backslash using preg_replace() and/or str_replace() is buggy.
ID: 17889
Updated by: sander@php.net
Reported By: gArgraves@earthlink.net
-Status: Open
+Status: Bogus
Bug Type: Regexps related
Operating System: freeBSD
PHP Version: 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-06-20 22:41:41] gArgraves@earthlink.net
Hello,
I am trying to match escaped character sequences for a replacement to
avoid forward handling problems.
a search pattern of:
"/(\\)(.)/" or
"/(\\)(\.)/" or
which matches escaped characters, returns rutime errors.
This reg.exp. would allows replacement using either $1,$2 or //1, //2
to cotrol replacement.
Note: search pattern:
"\\\."
will locate the escaped charaters correctly, however can not do the
desired replacement.
Gary
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17889&edit=1
Thread (2 messages)