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

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

Thread Previous | Thread Next
Paul LeoNerd Evans
November 2, 2010 16:32
Re: RFC: m//a restrict matching to ASCII
Message ID:
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

Doesn't it break this?

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

Paul "LeoNerd" Evans
ICQ# 4135350       |  Registered Linux# 179460

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About