The <a>
tag like this:
<a data-hash="9aab8aa3af7dc519c643fdcfd973b040" href="http://www.zhihu.com/people/9aab8aa3af7dc519c643fdcfd973b040" class="member_mention" data-editable="true" data-title="@somebody" data-tip="p$b$9aab8aa3af7dc519c643fdcfd973b040">@somebody</a>
and I want get the url
href="http://www.zhihu.com/people/9aab8aa3af7dc519c643fdcfd973b040"
and the @somebody
at the same time
I have tried like this:
href=\"(.*?)\">(.*?)</a>
The result is:
href="http://www.zhihu.com/people/9aab8aa3af7dc519c643fdcfd973b040" class="member_mention" data-editable="true" data-title="@somebody" data-tip="p$b$9aab8aa3af7dc519c643fdcfd973b040">@somebody</a>
Is anyone can give me some suggestion?