fork(2) download
  1. <?php
  2.  
  3. $re = '/([\d.]+)\s*MiB/';
  4. $str = 'Uploaded Today 13:11, Size 117.09 MiB, ULed by demonoidt';
  5. if (preg_match($re, $str, $match)) {
  6. echo $match[1];
  7. }
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
117.09