PHP正则匹配到2个字符串之间的内容

$preg= '/xue[\s\S]*?om/i';
preg_match_all($preg,"学并思网址xuebingsi.com",$res);
var_dump($res[0][0]);

猜你喜欢

转载自www.cnblogs.com/lvtiansong/p/9481567.html