i need to make a regex which can match anchor tags having href attribute. It should match any anchor tag having href attribute regardless of having any other attribute or not. So far i came up with this
<\s*a\s*\w*\W*\w*\W*\s*href[^>]*>
but its not working on cases like
<a name="anything" id="anything" href="anything"/>