fork(1) download
  1. <?php
  2.  
  3. $my_string = 'Auth code: 02452A</div>';
  4. preg_match("~Auth code:\s*\K\w+~",$my_string, $m);
  5. print_r($m[0]);
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
02452A