Fixing regex to handle additional attributes in anchor tags.