Alexey Shamrin <sham...@gmail.com> added the comment: 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." http://docs.python.org/library/re.html#re.findall I would suggest to close this bug. ---------- nosy: +ash _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6663> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com