python string remove all noy letters 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: how to remove all characters from a string in python
s = 'abc12321cba'
print(s.replace('a', ''))