develooper Front page | perl.perl5.porters | Postings from November 2010

Re: RFC: m//a restrict matching to ASCII

Thread Previous | Thread Next
From:
Paul LeoNerd Evans
Date:
November 2, 2010 16:32
Subject:
Re: RFC: m//a restrict matching to ASCII
Message ID:
20101102233208.GY11110@cel.leo
On Tue, Sep 21, 2010 at 12:27:50PM -0600, karl williamson wrote:
> I'm proposing a '/a' regex modifier that would restrict matches of
> \d, \s, \w, and [:posix:] to characters in the ASCII character set.
> This would be true even on utf8-encoded patterns and targets.

Forgive my extreme lateness, but isn't this what we debated for months
previously?

Doesn't it break this?

 $ perl -E '"123"=~m/\d/and say"digit"'

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

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