W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > January 1997

Re: Production 21 (and others)

From: Gavin Nicol <gtn@ebt.com>
Date: Wed, 29 Jan 1997 12:54:00 -0500
Message-Id: <199701291754.MAA00709@nathaniel.ebt>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:07 UTC