Erm, I have ready-to-use code, and I\'m sure it really works, but I get the following error:
TypeError: descriptor \'split\' requires a \'str\' object but
Neither method worked when using isdigit. If you are in a similar solution, you could try a try-except block similar to
isdigit
try
except
try: output += filter(str.isdigit, some_string) except TypeError: output += filter(unicode.isdigit, some_string)