Answers for "how to remove all non alphabetical character from a string in python"

3

python remove non letters from string

def nospecial(text):
	import re
	text = re.sub("[^a-zA-Z0-9]+", "",text)
	return text
Posted by: Guest on May-31-2020
0

remove alphabetic characters python

numeric_answer = filter(str.isdigit, original_string)
numeric_answer = "".join(numeric_answer)
Posted by: Guest on October-31-2020

Code answers related to "how to remove all non alphabetical character from a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language