私は1つのヘルプが必要です、私は特定のdivクラス内の私のリンクにhrefリンクを置き換えたいです。preg_replace特定のタグ内のリンクを置き換える正規表現
<div id="slider1" class="owl-carousel owl-theme">
<div class="item">
<div class="imagens">
<a href="http://oldsite.com/the-fate-of-the-furious"><img src="https://image.oldste.org" alt="The Fate of the Furious" width="100%" height="100%" /></a>
<span class="imdb">
<b class="icon-star"></b> N/A
</span>
</div>
<span class="ttps">The Fate of the Furious</span>
<span class="ytps">2017</span>
</div>
</div>
はここで私は
<a href="http://newsite.com/?id=the-fate-of-the-furious">
がにpreg_replace正規表現で私を助けてくださいように、これらのhrefのリンクをしたいhttp://oldsite.com/
http://newsite.com/?id=に変更したいです。
おかげ