fork(1) download
  1. <?php
  2.  
  3. // NO SEMI_COLONS
  4. $str='GET........ref=mp4GET........ref=flvGET........ref=mp4';
  5. preg_match_all('/GET\b(?:(?!GET\b).)*mp4(?=$|GET\b)/', $str, $res);
  6. print_r($res);
  7.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => GET........ref=mp4
            [1] => GET........ref=mp4
        )

)