Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sort isdigit

>>> ''.join(filter(str.isdigit, 'image101.jpg'))
'101'
>>> int(''.join(filter(str.isdigit, 'image101.jpg')))
101
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #sort #isdigit
ADD COMMENT
Topic
Name
6+7 =