regexp weirdness (bug?)

Fredrik Lundh fredrik at pythonware.com
Tue Apr 5 12:46:21 EDT 2005


André Malo wrote:

> No, I suppose they shouldn't compile.
> _re_pair should be (?P=plus).

the (?(NAME)RE|RE) form was added in 2.4.

looks like a bug to me; the "plus" group is set to "+" in all four cases, so the
final pattern should match.  but I might be missing something...

</F> 






More information about the Python-list mailing list