I wrote a regex to find out href from anchor tag
My regex is
<a.*?href="(.*?)">blah<\/a> //dot is matching all
So according to me, this will start matching from <a until it finds out first href. After this it will grab the url in href until first " and then it will match for blah.
But this is matching multiple sets of anchor tags which have blah tag in end, for example:
<a href="some_url">abc</a>
<a href="some_url1">def</a>
<a href="get_this">blah</a>
According to me it should grab only last url as regex fits it perfectly.
.*?part.hrefis in first captured group$1