On Fri, Mar 16, 2012 at 20:17, Carter Tazio Schonwald <
carter.schonw...@gmail.com> wrote:

> 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.
>
> There may be a way for a very controlled restricted subset of HTML, but it
> might require some complex regexes.
>

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.

HTML is not at all easy to deal with.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to