i have this regular expression:
<%(?<begintag>[^>]+)%>(?<inner>(.+?))<%/(?<endtag>[^%]+)%>
what i want to achive is, check for equality of begintag and endtag .
consider this input :
<%layout%>
<%pagetitle="test">
<%products%>
<div class="product">
<img src="<%product-smallimage%>" class="thumbnail" alt="<%product-title%>"/>
<a class="buy-link" href="<%product-url%>"><%product-title%></a>
</div>
<%/products%>
is there any way to check this ?
thanks in advance.