New submission from Phillip M. Feldman <pfeld...@verizon.net>: 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. ---------- components: Regular Expressions messages: 91393 nosy: pfeld...@verizon.net severity: normal status: open title: re.findall does not always return a list of strings type: behavior versions: Python 2.5 _______________________________________ 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