fork(2) download
  1. <?php
  2.  
  3. preg_match('/(\d+)/', 'д.12/1', $matches);
  4. echo $matches[1];
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
12