[英]perl regex to php
%\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b%
how do i make this understood for PHP 我如何使这理解为PHP
i want to find all email addresses in an html doc 我想在HTML文档中查找所有电子邮件地址
PHP supports Perl regex through the preg_replace
and preg_match
functions. PHP通过preg_replace
和preg_match
函数支持Perl regex。 You don't need to change your regex at all. 您根本不需要更改正则表达式。
您可能需要考虑调整正则表达式以捕获更多地址。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.