<?php$number = "10.5 100.50 10.250";preg_match_all('/\b[\d]{2}\.\d+\b/', $number , $output);print_r($output[0]);
Standard input is empty
Array ( [0] => 10.5 [1] => 10.250 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!