I need a reliable regular expression that will match a specific html tag but will ignore the tag if it has a specific attribute/property in place.
For example, I need to turn this:
Into this...
For example, I need to turn this:
Code:
<ul>
<li><html:link action="give.up"></li>
<li><html:link action="give.up"></li>
<li><html:link
action="give.up"></li>
<li><html:link action="give.up" onclick="ask4help();"></li>
<li><html:link action="give.up" onclick="ask4help();" ></li>
</ul>
Into this...
Code:
<ul>
<li><html:link action="give.up" onclick="ask4help();"></li>
<li><html:link
action="give.up" onclick="ask4help();"></li>
<li><html:link action="give.up" onclick="ask4help();"></li>
<li><html:link action="give.up" onclick="ask4help();"></li>
<li><html:link action="give.up" onclick="ask4help();" ></li>
</ul>