Removing all non-numeric characters from string in Python - Stack Overflow

PHOTO EMBED

Wed Jun 30 2021 07:47:45 GMT+0000 (UTC)

Saved by @pmv

re.sub("[^0-9]", "", "sdkjh987978asd098as0980a98sd")
content_copyCOPY

https://stackoverflow.com/questions/1249388/removing-all-non-numeric-characters-from-string-in-python