Answers for "remove special characters in string python"

0

remove special characters from string python

import re
re.sub('[^A-Za-z0-9]+', '', mystring)
Posted by: Guest on May-14-2021
0

how to replace special characters in a string python

removeSpecialChars = z.translate ({ord(c): " " for c in "!@#$%^&*()[]{};:,./<>?|`~-=_+"})
Posted by: Guest on May-02-2021

Code answers related to "remove special characters in string python"

Python Answers by Framework

Browse Popular Code Answers by Language