<?php $str = '1 2 3 4 5 6 7 8 9 Apollo-1 10'; if (preg_match_all('/(?<!\S)[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?(?!\S)/', $str, $matches)) { print_r($matches[0]); }
You have javascript disabled. You will not be able to edit any code.