human
Removing all non-numeric characters from string in Python
assistant
Here is some code to remove all non-numeric characters from string `sdkjh987978asd098as0980a98sd `

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

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.