fork download
  1. <?php
  2. $str = 's_113_2.3gp';
  3. $n = preg_match('/(?<=_)\d+(?=\.)/', $str, $m) ? $m[0] : "";
  4. print($n);
  5. ?>
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
2