On Wed, 10 Aug 2005 00:31:30 -0700, in php.internals
[EMAIL PROTECTED] (Andrei Zmievski) wrote:

>  - existing PHP escape sequences are also interpreted as Unicode codepoints,
>    including \xXX (hex) and \OOO (octal) numbers, e.g. "\x20" => U+0020
[..]
>The single-quoted string is more restrictive than the other two types: so
>far the only escape sequence allowed inside of it was \', which specifies
>a literal single quote. However, single quoted strings now support the new
>Unicode character escape sequences as well.

For what it's worth, would \1 be interpreted as well in single quotes
(as it currently is in double quotes)?

I suppose one of the places where \digit would be present in several
cases is in poor-written pregs - such as:
        print preg_replace('/([A-Z])/','<b>\1</b>',$string);
(where \1 is used as backreference instead of \\1 or $1)

I'm not that worried about my own preg-usage. I just want to be
prepared if I ever have to review some code for the purpose of
migrating to PHP6.

-- 
- Peter Brodersen

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to