なんで誤爆するかっていうと
<a href="google"></a><a href="http://item.rakuten.co.jp";></a>
最初の<aから2番目のhrefまでの間すべてを*に含んでしまっているから