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 TxRxFx
Recipients TxRxFx
Date 2010-11-26.15:34:02
SpamBayes Score 2.0317426e-10
Marked as misclassified No
Message-id <1290785645.11.0.221832433398.issue10539@psf.upfronthosting.co.za>
In-reply-to
Content
The first char in a word is omitted from being checked against the 'range' element of the 1st part of this expression. 

The second char is properly checked to see if it's in range 

# Desired safe string to expect
goodString = "f42e6be1-29bf-4f3c-ba58-1ae1d9ca5f88"

# Test string to return False if it's not within reg ex range.
# but still returns a false positive even though the g at the start is outside of a-f range.
badString = "g42e6be1-29bf-4f3c-ba58-1ae1d9ca5f88"

# 2nd test string which does return a false result correctly.
otherBadString = "fg2e6be1-29bf-4f3c-ba58-1ae1d9ca5f88"

See attached file for example.

"Python 2.5.4 (r254:67916, Dec 23 2008, 15:19:34) [MSC v.1400 64 bit (AMD64)] on
win32"
History
Date User Action Args
2010-11-26 15:34:05TxRxFxsetrecipients: + TxRxFx
2010-11-26 15:34:05TxRxFxsetmessageid: <1290785645.11.0.221832433398.issue10539@psf.upfronthosting.co.za>
2010-11-26 15:34:02TxRxFxlinkissue10539 messages
2010-11-26 15:34:02TxRxFxcreate