Answers for "python remove letters in a string"

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
8

delete certain characters from a string python

for char in line:
    if char in " ?.!/;:":
        line.replace(char,'')
Posted by: Guest on April-08-2020
19

remove from string python

"Str*ing With Chars I! don't want".replace('!','').replace('*','')
Posted by: Guest on May-13-2020

Code answers related to "python remove letters in a string"

Python Answers by Framework

Browse Popular Code Answers by Language