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 eric.smith
Recipients TxRxFx, eric.smith
Date 2010-11-26.18:37:00
SpamBayes Score 1.2480484e-05
Marked as misclassified No
Message-id <1290796623.6.0.855979725611.issue10539@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure I understand. The output I get is:

f42e6be1-29bf-4f3c-ba58-1ae1d9ca5f88
g42e6be1-29bf-4f3c-ba58-1ae1d9ca5f88
False

The first string matches. The second string matches because the leading "g" is being matched by "\w". The third string does not match because the "g" in the second position is not matched by "[0-9][a-f]".

For the second string you're matching "\w" followed by 7 "[0-9][a-f]", just as the regex allows.

Am I missing something?
History
Date User Action Args
2010-11-26 18:37:03eric.smithsetrecipients: + eric.smith, TxRxFx
2010-11-26 18:37:03eric.smithsetmessageid: <1290796623.6.0.855979725611.issue10539@psf.upfronthosting.co.za>
2010-11-26 18:37:00eric.smithlinkissue10539 messages
2010-11-26 18:37:00eric.smithcreate