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 ash
Recipients, ash
Date 2009-08-07.12:23:31
SpamBayes Score 0.000242969
Marked as misclassified No
Message-id <>
You've made three groups with parentheses. Just drop them:

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

Everything is according to documentation: "If one or more groups are
present in the pattern, return a list of groups; this will be a list of
tuples if the pattern has more than one group."

I would suggest to close this bug.
Date User Action Args
2009-08-07 12:23:36ashsetrecipients: + ash,
2009-08-07 12:23:36ashsetmessageid: <>
2009-08-07 12:23:34ashlinkissue6663 messages
2009-08-07 12:23:32ashcreate