Now REGULAR EXPRESSION
<a\s(class|href|target)=\"(.*)\"\s(class|href|target)=\"(.*)\"\s(class|href|target)=\"(.*)\">(.*)<\/a>/g
MATCH THIS LINK
<a href="index.php" target="5454 target 54" class="nav">test</a>
But i want to use only one regex using conditions match every url
example:
<a href="index.php">cal</a>
<a class="xxx" href="index.php">cal</a>
<a class="navbar-brand" href="index.php" target="">cal<span>.net</span></a>
I test this in: https://regex101.com