獲取a標簽中的url連接 $str = '<a href="http://www.baidu.com"></a>';preg_match('/href=[\'|\"](\S+)[\'|\"]/i',$s ...