Support for regular expression syntax

Hello. Maybe this topic has been discussed. I would like to have the support of alphabetic rules, such as \p{...}, in re module.

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? -- Steven

On Sat, Feb 26, 2011 at 2:58 PM, Steven D'Aprano <steve@pearwood.info> wrote:
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@gmail.com | Brisbane, Australia

On 26/02/2011 14:19, Nick Coghlan wrote:
They are supported in the new regex implementation, available at PyPI: http://pypi.python.org/pypi/regex

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? -- Steven

On Sat, Feb 26, 2011 at 2:58 PM, Steven D'Aprano <steve@pearwood.info> wrote:
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@gmail.com | Brisbane, Australia

On 26/02/2011 14:19, Nick Coghlan wrote:
They are supported in the new regex implementation, available at PyPI: http://pypi.python.org/pypi/regex
participants (4)
-
Alexander
-
MRAB
-
Nick Coghlan
-
Steven D'Aprano