how to strip out text from a string containing alphanumerics in python code example
Example: python string strip non alphanumeric
Regular expressions to the rescue:
import re
stripped_string = re.sub(r'\W+', '', your_string)
Regular expressions to the rescue:
import re
stripped_string = re.sub(r'\W+', '', your_string)