I'm writing a file parser... I have this string
line = "E-Cluster HW active residency: 57.25% (600 MHz: 0% 972 MHz: 32% 1332 MHz: 6.8% 1704 MHz: 11% 2064 MHz: 50%)\n"
line.gsub(/[^\d.]/,'')
=> "57.2560009723213326.8170411206450"
line.match(/:\s+(\d+)/)[1]
=> "57"
I need '57.25'
How can I fix it?