I have a file with a tons of links of 2 formats as follows: A. <a href="http://www.ouathuygbbaaarrvg.com" target="_blank">Doggy</a> B. <a href="http://www.cehaiuragityagtay.com">Catty</a> I want to search those links of type B, but don't know how. <a href="http.*?"> identifies both A and B as the * searches all the way, but I want the * to last until it encounters "