I'm pretty sure you need two calls to re.sub. This isn't a Python issue so much as a regular expression issue, and as far as I know this isn't possible.
Regular expressions (regex) can be used to remove special characters from a string in Python. The re.sub() function can be used to replace a pattern in a string with an empty string. The pattern can ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results