Improvement for backwards compatibility

?P should be used to speficy a subpattern, is recommended for backwards compatibility as can be seen on official documentation http://www.php.net/manual/pt_BR/function.preg-match.php