7 points
It can’t be done, as an opening tag in html can contain anything in its attributes, even JavaScript (e.g. onclick handler).
-1 points
5 points
You can’t parse every html opening tag with regex, because a html opening tag doesn’t have a set structure. How would you match, with regex, this opening tag?
<mytag myattribute="<value of \"myattribute\">" >
0 points
*
Is this valid HTML? My understanding is that that attribute value needs to be escaped, i.e. <value of \"myattribute\">
.