我正在尝试从预赛中获取链接,但它没有提供任何输出
这是模式:
<a href="http://media1.xyz.com/full5/Animals/Rabbits/rabbits-16a.jpg" download="rabbits-16a"><img onmouseover="showFullScreen('inline')" onmouseout="showFullScreen('none')" src="http://media1.xyz.com/full5/Animals/Rabbits/rabbits-16a.jpg" id="wall" border="0" align="middle" width="1920" height="1080" alt="Rabbits 1920x1080 Wallpaper # 17" title="Rabbits HD Wallpaper #17" /></a>
我试过这个:
preg_match("/\<a href=/\"(.*)\">/",$str,$title);
我只想获取href的链接。