I have a list in Python that looks like this:
['29382 this is something', '2938535 hello there', '392835 dont care for this', '22024811 yup']
I need to process it so that it like this:
['29382', '2938535', '392835', '22024811']
How would I go on about doing this? I guess I could use re, but I don't know how to apply it in this situation.