non words in python

Solutions on MaxInterview for non words in python by the best coders in the world

showing results for - "non words in python"
Wade
29 Sep 2020
1import re
2
3regex = re.compile('[^a-zA-Z]')
4#First parameter is the replacement, second parameter is your input string
5regex.sub('', 'ab3d*E')
6#Out: 'abdE'