I have a list, which was produced as output of a python script in the following format:
[' (* 100.856 UnitA', ') [ 98.0%]',
' (* 100.598 UnitB', ') [ 98.0%]',
' (* 98.193 UnitC', ') [ 25.6%]']
Now, I am interested to put the floating point values in every list item to a new list for further processing in a python script. Is there a way (an in-built python function maybe) I can strip the floating point content alone to a new list? In the above example my desired output would be like :
[100.856,98.0,100.598,98.0,98.193,25.6]
If not an in-built function, any other alternate way I can achieve this?