<?php $my_string = 'Auth code: 02452A</div>';preg_match("~Auth code:\s*\K\w+~",$my_string, $m);print_r($m[0]);
Standard input is empty
02452A
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!