DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
extract numbers from list of strings python using regex
new_list = [int(item) for sublist in a for item in sublist if item.isdigit()]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#extract
#numbers
#list
#strings
#python
#regex
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit