Re: [PHP-DEV] Bug #3014: octal character versus regex backreferences From: Evan Klinger (evan715 <email protected>)
Date: 12/20/99

cmiller <email protected> wrote:
>
> From: cmiller <email protected>
> Operating system: any
> PHP version: 3.0 Latest CVS (20/12/1999)
> PHP Bug Type: Feature/Change Request
> Bug description: octal character versus regex backreferences
>
> ereg("fla(r[gpm]) wobba\1", $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.

\\n is used for back-references.

-- 

ev

---------------------------- Evan Klinger evan <email protected> AIM evan715

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>