human
How to remove symbols from a string with Python?
assistant
Here is some code to remove symbols from a string `s`

re.sub('[^\\w]', ' ', s)

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