perl regex to php
%\b[A开发者_高级运维-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b%
how do i make this understood for PHP
i want to find all email addresses in an html doc
PHP supports Perl regex through the preg_replace
and preg_match
functions. You don't need to change your regex at all.
You may want to consider adjusting your regex to capture more address.
精彩评论