human
Remove all special characters, punctuation and spaces from string
assistant
Here is some code to remove all special characters, punctuation and spaces from a string `mystring` using regex

re.sub('[^A-Za-z0-9]+', '', mystring)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.