develooper Front page | perl.perl5.porters | Postings from October 2009

Re: Rule 1 has been invoked [Re: What should \s \w \d match in 5.12?]

Thread Previous | Thread Next
From:
demerphq
Date:
October 30, 2009 12:37
Subject:
Re: Rule 1 has been invoked [Re: What should \s \w \d match in 5.12?]
Message ID:
9b18b3110910301237n9a79243l975fe7486056e028@mail.gmail.com
2009/10/30 John <john.imrie@vodafoneemail.co.uk>:
> Abigail wrote:
>>
>> I also suggest that the POSIX character classes *never* match code points
>> above 255, regardless of the modifier. In which, one would be able to
>> write
>>
>>   /\w[:digit:]/u
>>
>>
>
> I agree with you.
>
> Unfortunately the Unicode consortium maps [:digit:] to \p{IsDidgit}
> This page http://en.wikipedia.org/wiki/Regular_expression on wikipedia
> states [:digit:] maps to [0-9] but also maps to \d.
> http://docs.plt-scheme.org/guide/regexp-chars.html states [:digit:] – ASCII
> digits, same as \d
>
> Here we go again. :-)
>
> What I haven't been able to find is a definitive result as to what [:digit:]
> should match

See the POSIX spec.

cheers,
Yves




-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About