martha
0
Q:

how to Write the regular expression that will match all non-digit characters of a string.

import re
foo = '69he420l356lo420World69420'
match = re.findall(r'\D', foo)
print (match)
#should return, ['h', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd']
0

New to Communities?

Join the community