This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author niemeyer
Recipients
Date 2003-04-27.12:35:29
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=7887

Good catch Greg!

Just for reference, here are two tests to confirm that
you're right:

perl -e '"abc" =~ /^((a)|b)*/; print "$1 $2\n";'
echo "abc" | sed -r -e "s/^((a)|b)*/\1 \2|/"

The only change I made was to port your tests to test_re.py.

Applied as:

Modules/_sre.c: 2.94
Lib/test/test_re.py: 1.40

Thanks!
History
Date User Action Args
2007-08-23 14:12:38adminlinkissue725106 messages
2007-08-23 14:12:38admincreate