我有这个密码
<div data-slide-id="zoom" class="overview active" data-lazy-background="" style="background-image: url("https://dy9ihb9itgy3g.cloudfront.net/products/1183/d8066/d8066____black1-r.740.jpg");">
<a class="MagicZoom" id="magiczoom-plus" data-options="lazyZoom: true" href="https://dy9ihb9itgy3g.cloudfront.net/products/1183/d8066/d8066____black1-r.2000.jpg">
<figure class="mz-figure mz-hover-zoom mz-inner-zoom mz-ready" style="transform: translate3d(0px, 0px, 0px);">
<div class="mz-lens" style="top: 0px; transform: translate(-10000px, -10000px); width: 142px; height: 220px;">
<img src="https://dy9ihb9itgy3g.cloudfront.net/products/1183/d8066/d8066____black1-r.740.jpg" style="position: absolute; top: 0px; left: 0px; width: 532px; height: 765px;">
</div>
<div class="mz-loading"></div>
<img src="https://dy9ihb9itgy3g.cloudfront.net/products/1183/d8066/d8066____black1-r.740.jpg" style="max-width: 740px; max-height: 987px;">
</figure>
</a>
</div>
我想在href中获取内容?我能做什么?我写了这段代码,但它不起作用。
preg_match(\'#<div(.*)class="overview active"><a(.*)href="(.*?)">#\', $data, $name);