In Python, I want to extract only the characters from a string.
Consider I have the following string,
input = \"{(\'players\',): 24, (\'year\',): 28
string.split() doesn't take regular expressions. You want something like:
re.split("[^a-zA-Z]*", "your string")
and to get a string:
" ".join(re.split("[^a-zA-Z]*", "your string"))