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:
John
Date:
October 29, 2009 13:11
Subject:
Re: Rule 1 has been invoked [Re: What should \s \w \d match in 5.12?]
Message ID:
4AE9F6E1.9050509@vodafoneemail.co.uk
Abigail wrote:
> If we want '\w+' to be able to match Klingon "words", why shouldn't \d+
> match Klingon numbers? Yes, \d+ matches digits from different scripts,
> but \w+ matches word characters from different scripts as well.
>
> Now, don't consider this an argument in favour of having \w match non-ASCII
> characters - but, IMO, if \w can match non-ASCII characters, so should \d.
>
>
>
> Abigail
>
>   
The unicode character database file UnicodeData.txt contains in fields 
6,7 and 8 the value of numeric characters. Could we not use that to 
numeifiy characters such as Ⅲand Ⅸ so Ⅸ - Ⅳ == 5

John

______________________________________________        
This email has been scanned by Netintelligence        
http://www.netintelligence.com/email


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