[Python-ideas] Support for regular expression syntax

Nick Coghlan ncoghlan at gmail.com
Sat Feb 26 15:19:40 CET 2011


On Sat, Feb 26, 2011 at 2:58 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> Alexander wrote:
>>
>> Hello. Maybe this topic has been discussed. I would like to have the
>> support of alphabetic rules, such as \p{...}, in re module.
>
>
> Perhaps you could start the discussion by telling us what alphabetic rules
> such as \p{...} do, and which regex engines support them?

I found it on the last bullet point here:
https://secure.wikimedia.org/wikipedia/en/wiki/Regular_expression#Unicode

Apparently Perl and Java have constructs that allowing querying the
Unicode character database inline within a regex.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list