Python regular expressions just ain't PCRE

Terry Reedy tjreedy at udel.edu
Sat May 5 00:12:55 EDT 2007


"Wiseman" <Wiseman1024 at gmail.com> wrote in message 
news:1178323901.381993.47170 at e65g2000hsc.googlegroups.com...
| I'm kind of disappointed with the re regular expressions module.

I believe the current Python re module was written to replace the Python 
wrapping of pcre in order to support unicode.

| In particular, the lack of support for recursion ( (?R) or (?n) ) is a
| major drawback to me.

I don't remember those being in the pcre Python once had.  Perhaps they are 
new.

|Are there any plans to support these features in re?

I have not seen any.  You would have to ask the author.  But I suspect that 
this would be a non-trivial project outside his needs.

tjr






More information about the Python-list mailing list