[pcre-dev] [Bug 1336] Universal Character Name escape code

Pàgina inicial
Delete this message
Autor: Philip Hazel
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 1336] Universal Character Name escape code
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1336




--- Comment #4 from Philip Hazel <ph10@???> 2013-02-14 09:28:04 ---
On Wed, 13 Feb 2013, Paulo Torrens wrote:

> Maybe what I can do is to make /\w/u match what I need... so, e.g., for an
> identifier, what I would need to do is /(?!\d)\w+/u... still not sure if that
> should match the $, @ and ` characters, though... the best would still be an
> escape code, as I suggested.


... or possibly some new character property such as \p{Lu} (upper case
letter). We could perhaps invent one e.g. \p{UCN} ... or check to see if
the Unicode standards mention anything like this. Using \p has the
benefit of not using up any more letters.

Regards,
Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email