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

Re: What should \s \w \d match in 5.12?

Thread Previous | Thread Next
From:
karl williamson
Date:
October 1, 2009 18:10
Subject:
Re: What should \s \w \d match in 5.12?
Message ID:
4AC552BD.2020407@khwilliamson.com
demerphq wrote:
> 2009/9/30 karl williamson <public@khwilliamson.com>:
>> I had thought in our discussion last year that we had determined that these
>> should match only in the ASCII range.  And so, I thought that when Yves
>> flipped the switch on the \p{Posix} matches, that these would change as
>> well, but that isn't the case:
>>  perl -E "say chr(0x2028) =~ /\s/"
>> 1
>>
>> in blead.
> 
> Im inclined to say it just slipped me by. Ill poke it with a stick
> when i get a chance.
> 
>> If I'm wrong about the agreement, I would like to start another discussion,
>> and my initial position is that they should only match in the ASCII range.
> 
> Agreed.

Just to be precise about it, I neglected to mention that my statement 
was meant only to apply in the absence of a "use locale", and whatever 
the base C library routines do on an EBCDIC system.  I wasn't advocating 
changing the behavior under those circumstances.

> 2009/9/30 Zefram <zefram@fysh.org>:
>> Yes please.  The ASCII versions are very commonly required, deserving of
>> a shorthand, and currently lack any abbreviated form at all.  Matching
>> extendable sets of Unicode characters is a much less common requirement,
>> and can already be expressed in explicitly-Unicode-based ways.
> 
> Yes i concur.
> 
> Yves
> 


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