I have a list which contains strings: list = ['string', 'string', 'string', ...]
Those strings are like: 'NumberDescription 33.3'
I want to extract only the numbers without the 'NumberDescription' part.
I've tried it with regex and the filter function with re.match. But this results in an empty list.
dat_re = re.compile(r'\d+.\d')
dat_list = list(filter(dat_re.match, list))
As I said, I only want the numbers from the list and in a last step, I want to convert the elements of the list into floating numbers.