- From: Gavin Nicol <gtn@ebt.com>
- Date: Wed, 29 Jan 1997 12:54:00 -0500
- To: U35395@UICVM.UIC.EDU
- CC: w3c-sgml-wg@www10.w3.org
>Finally, it should be pointed out that although the deterministic
>regular expression for comments is complicated, the comment structure
>itself is very simple and easy to describe:
>
> Comments begin with '<!--*' and end with '*-->'.
> Within a comment, anything is legal except '--'.
Very simple rule:
"<!--*"([^-]|("-"[^-]))*"*-->"
>
>After the TC, these rules can change (and will, unless the ERB rescinds
>its decision of earlier this month) to:
>
> Comments begin with '<!--*' and end with '*-->'.
> Within a comment, anything is legal except '*--'.
You and I came up with exactly the same thing:
"<!--*"([^*]|("*"[^-])|("*-"[^-]))*"*-->"
Received on Wednesday, 29 January 1997 12:55:52 UTC