I read Perl5.6 document and found exporession [:word:].
It says:
[:word:] alphabet + digit + '_'
[:alnum:] alphabet + digit
[:alnum:] behavior is word character at my patch.
I don't need only OpCode._ALNUM but also OpCode._WORD.
And current OpCode._ALNUM and OpCode._NALNUM works as 'word character'.
I resolved this problem and added some feature:
- replased [:alnum:] to [:word:].
- replaced OpCode._ALNUM and OpCode._NALNUM to
OpCode._WORD and OpCode._NWORD
for [:word:],\w and \W.
- added [:alnum:] and OpCode._ALNUM again.
- added negative POSIX expression like [:^foo:].
(add OpCode._NOPCODE for it)
- added [:ascii:] and OpCode._ASCII.
- added '\p{Prop}' and '\P{Prop}' expression
(ex. \p{IsDigit} equals \d, \P{IsDigit} equals \D ).
I implemented following expression for \p and \P with
__parseUtf8Perl().
IsASCII
IsAlpha
IsAlnum
IsCntrl
IsDigit
IsGraph
IsLower
IsPrint
IsPunct
IsSpace
IsUpper
IsWord
IsXDigit
* Please see Perl5.6 perlre document for detail.
* issue:
- We can't use expression \p{} and \P{} without [].
But we can it with Perl5.6.
Regards.
-------------
Takashi Okamoto
- Re: [PATCH] [:^foo:] and \p{IsDigit}... Takashi Okamoto
- Re: [PATCH] [:^foo:] and \p{IsDigit}... Daniel F. Savarese
- Re: [PATCH] [:^foo:] and \p{IsDigit}... Takashi Okamoto
- Re: [PATCH] [:^foo:] and \p{IsDigit}... Daniel F. Savarese
- Re: [PATCH] [:^foo:] and \p{IsDigit}..... Takashi Okamoto
- Re: [PATCH] [:^foo:] and \p{IsDig... Daniel F. Savarese
oro-patch