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 04:42
Subject:
Re: Rule 1 has been invoked [Re: What should \s \w \d match in 5.12?]
Message ID:
9b18b3110910300442j5939cec5w143a83b965c9067f@mail.gmail.com
2009/10/30 David Cantrell <david@cantrell.org.uk>:
> On Thu, Oct 29, 2009 at 04:39:39PM +0000, Paul LeoNerd Evans wrote:
>> Paul LeoNerd Evans <leonerd@leonerd.org.uk> wrote:
>> > I would suggest
>> > ASCII-only          \w      \d      \s
>> > Includes Unicode    \Uw     \Ud     \Us
>> > Only \U is already used. And \u.
>> Actually then, on that note could we consider some more modifiers?
>> ASCII:   m/\w/a   m/\d/a   m/\s/a
>> Unicode: m/\w/u   m/\d/u   m/\s/u
>> and if neither is specified keep to the existing behaviour..
>
> What if you want \w to match Funny Forn Characters like a-acute and
> alpha and alif, but only want \d to match 0-9?

This is the chief reason i would prefer that \d matches 0-9 only, in
all /modifiers.

But i am resigned to not getting my way on this. :-)

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