Contact: aviboots(AT)netvision.net.il
39,900 questions
51,831 answers
573 users
import re s = "abs322kl59po@$d0057qn8" # Create a regular expression to match digits digits_regex = re.compile(r"[0-9]") # Use re.sub to replace digit characters with an empty string s = digits_regex.sub("", s) print(s) ''' run: absklpo@$dqn '''