remove multiple letters from string python code example
Example 1: python remove non letters from string
def nospecial(text):
import re
text = re.sub("[^a-zA-Z0-9]+", "",text)
return text
Example 2: python remove multiple characters from string
import re
print(re.sub("e|l", "", "Hello people"))
"Ho pop"