ID: 3014
Updated by: jimw
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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
--
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]