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

RFC: regex modifier to restrict ascii character /i matching to ascii

Thread Next
From:
karl williamson
Date:
December 22, 2010 15:23
Subject:
RFC: regex modifier to restrict ascii character /i matching to ascii
Message ID:
4D12886E.1000309@khwilliamson.com
No one objected when I said I would implement the /a regex modifier 
without it affecting caseless matching, so that's what I'm doing.  I 
also said that I would implement an extension which is to prevent an 
ASCII character from matching any non-ASCII character.  Thus for example 
"\N{KELVIN SIGN}" would not match /[kK]/ under this scenario.

We need a way to specify this behavior.  I'm leaning to the regex 
modifier /A, which is /a plus some.

Another would be to have doubled modifiers /aa.  That is harder to parse.

Any thoughts or other ideas?

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