PHP 4.0 Bug #3014 Updated: octal character versus regex backreferences
| From: | jimw@php.net | Date: | Sat, 10 Feb 2001 18:55:42 +0000 |
| Subject: | PHP 4.0 Bug #3014 Updated: octal character versus regex backreferences | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46212@lists.php.net to get a copy of this message | ||
ID: 3014
Updated by: jimw
Reported By: cmiller@surfsouth.com
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
the backreference needs a double backslash, and then there's no confusion.
Previous Comments:
---------------------------------------------------------------------------
[1999-12-20 21:18:57] cmiller@surfsouth.com
ereg("fla(r[gpm]) wobba1", $foo)
Note the ``1'' -- is that an octal 1 in my charset, or a backreference?
The backslash-x-number notation is great for hexidecimal, but the backslash-number notation
conflicts with the notation for backreferences (in ereg(), e.g.)
Are there backreferences? The manual refers us to the regex(7) manpage, which does describe them.
Even if there's not, I recommend backslash-zero-octal, as historically, octals are represented
with preceding zeros. Backreferences are positive integers (which mortals usually describe with no
leading zero), so there's no conflict.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=3014&edit=2