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 Phillip.M.Feldman@gmail.com
Recipients Phillip.M.Feldman@gmail.com
Date 2009-08-07.06:00:10
SpamBayes Score 6.6861257e-06
Marked as misclassified No
Message-id <1249624814.45.0.837975483748.issue6663@psf.upfronthosting.co.za>
In-reply-to
Content
As per the Python documentation, the following regular expression should
produce a list containing the strings '6.7', 7.33', and '9':

re.findall('(-?\d+[.]\d+)|(-?\d+[.]?)|(-?[.]\d+)', 'asdf6.7jjjj7.33ff9')

Instead, it generates a list of tuples.  Either the documentation should
be changed to make it consistent with what re.findall is actually doing,
or, better yet, re.findall should be fixed.
History
Date User Action Args
2009-08-07 06:00:14Phillip.M.Feldman@gmail.comsetrecipients: + Phillip.M.Feldman@gmail.com
2009-08-07 06:00:14Phillip.M.Feldman@gmail.comsetmessageid: <1249624814.45.0.837975483748.issue6663@psf.upfronthosting.co.za>
2009-08-07 06:00:12Phillip.M.Feldman@gmail.comlinkissue6663 messages
2009-08-07 06:00:11Phillip.M.Feldman@gmail.comcreate