Search
 
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
Name
2+8 =