Answers for "how to strip multiple characters in python"

2

python remove multiple characters from string

import re
print(re.sub("e|l", "", "Hello people"))
"Ho pop"
Posted by: Guest on December-01-2020
0

remove all parentheses from string python

>>> table = str.maketrans({"(":None, ")":None})
Posted by: Guest on February-20-2020

Code answers related to "how to strip multiple characters in python"

Python Answers by Framework

Browse Popular Code Answers by Language