RegEx matching for URLs in HTML RegEx matching for URLs in HTML shell shell

RegEx matching for URLs in HTML


/^(<)(.*?)(href=)("|')(.*?)(>)$/gm

Demo

or is |.

() helps you to group your string step by step.

It is certainly not the best, but that online tool might help you.