fork(2) download
  1. text = " -45.124, 1124.325"
  2. puts text.scan(/[+-]?\d+(?:\.\d+)?/)
Success #stdin #stdout 0.02s 7460KB
stdin
Standard input is empty
stdout
-45.124
1124.325