preg_match('/(\d{2}.\d{1,20})(\d{2}.\d{1,20})/', $str, $m, PREG_OFFSET_CAPTURE);
array:3 [▼
0 => array:2 [▼
0 => "56.61926920000001"
1 => 0
]
1 => array:2 [▼
0 => "56.6192692000"
1 => 0
]
2 => array:2 [▼
0 => "0001"
1 => 13
]
]
$str1 = '(56.61926920000001, 84.88168339999993):8';
$str2 = '56.61926920000001, 84.12';
$str3 = '56.61926920000001, 84';
preg_match_all('/([\d]*[.][\d]*)/', $str1, $matches);
print_r($matches[1]);
// [0] => 56.61926920000001
// [1] => 84.88168339999993
preg_match_all('/([\d]*[.][\d]*)/', $str2, $matches);
print_r($matches[1]);
// [0] => 56.61926920000001
// [1] => 84.12
preg_match_all('/([\d]*[.][\d]*)/', $str3, $matches);
print_r($matches[1]);
// [0] => 56.61926920000001