Closed bibimbop closed 11 years ago
unbalancedRE has the RE to detect unbalanced <i>, <b> and <sc>, but not for </i>, </b> and </sc>.
<i>
<b>
<sc>
</i>
</b>
</sc>
(edited to add back-ticks)
Oogh. \<i>[^<]+<(?!/i) finds <i> followed by < that is not </i -- ok. But how to find </i> that is not preceded by i> ?? Something like [^i]>[^<]+</i I suppose...
\<i>[^<]+<(?!/i)
<
</i
i>
[^i]>[^<]+</i
commit d9729ee
unbalancedRE has the RE to detect unbalanced
<i>
,<b>
and<sc>
, but not for</i>
,</b>
and</sc>
.(edited to add back-ticks)