I\'m having trouble matching a digit in a string with Python. While it should be clearly matched, It doesn\'t even match [0-9] [\\d] or just
[0-9]
[\\d]
Use re.search instead of re.match.
Read the documentation: http://docs.python.org/2/library/re.html#re.match
If zero or more characters at the beginning of string
You want to use re.search (or re.findall)
re.search
re.findall
re.match is "anchored" to the beginning of the string. Use re.search.
re.match