fork(1) download
  1. <?php
  2. $txt="calculated F 15 513 153135 155 125 156 155 ";
  3. if ( preg_match('~calculated F \s*(\d+(?:\s*\d+)*)~', $txt, $matches) )
  4. print_r( preg_split( '~\s+~', $matches[1] ) );
Success #stdin #stdout 0s 82944KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 15
    [1] => 513
    [2] => 153135
    [3] => 155
    [4] => 125
    [5] => 156
    [6] => 155
)