<?php
$str = "<a href='/sdfs/sfsdfs/14873.htm' title='tesdf
斯蒂芬斯蒂f
sfsf ' target='_blank'><font class=text1>tesdf</font></a>";
$pattern = '/href=([\'"])([^\1]+?)\1/i';
preg_match($pattern, $str, $output);
echo $output[2];
?>
$str = "<a href='/sdfs/sfsdfs/14873.htm' title='tesdf
斯蒂芬斯蒂f
sfsf ' target='_blank'><font class=text1>tesdf</font></a>";
$pattern = '/href=([\'"])([^\1]+?)\1/i';
preg_match($pattern, $str, $output);
echo $output[2];
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货