<div dir="ltr">On Fri, Mar 16, 2012 at 20:17, Carter Tazio Schonwald <span dir="ltr">&lt;<a href="mailto:carter.schonwald@gmail.com">carter.schonwald@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span>Basically this applies in your case because recognizing if a sequence of characters is in a comment block or not for HTML is likely not expressible using regexes.  </span></div><div><span><br></span></div><div>
<span>There may be a way for a very controlled restricted subset of HTML, but it might require some complex regexes. </span></div><div></div></blockquote></div><br>Comments in particular are one of the places where SGML said one thing, the HTML spec which was loosely derived from SGML said a different thing, and most browsers did (occasionally mutually incompatible) something not quite either, with the result that they can be *very* difficult to get right in the general case.<div>
<br></div><div>HTML is not at all easy to deal with.<br clear="all"><div><br></div>-- <br>brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>
wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br><br>
</div></div>