/^(<)(.*?)(href=)("|')(.*?)(>)$/gm
or is |.
or
|
() helps you to group your string step by step.
()
It is certainly not the best, but that online tool might help you.