Extract Digits from a String in Python

See how to extract digits from a string in Python using a regular expression.

import reinputString = 'QuinStreet2019Year'result = re.sub("D", "", inputString) 
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

More From DevX