how to replace non alphanumeric characters in python using space code example
Example: python regex replace all non alphanumeric characters
import re
s = re.sub('[^0-9a-zA-Z]+', '*', s)
import re
s = re.sub('[^0-9a-zA-Z]+', '*', s)