[Python-ideas] Support for regular expression syntax
MRAB
python at mrabarnett.plus.com
Sat Feb 26 19:08:57 CET 2011
On 26/02/2011 14:19, Nick Coghlan wrote:
> 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.
>
They are supported in the new regex implementation, available at PyPI:
http://pypi.python.org/pypi/regex
More information about the Python-ideas
mailing list