W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] Re: BNF documentation for validated input types

From: Olav Junker Kjr <olav@olav.dk>
Date: Mon, 30 Aug 2004 13:06:19 +0200
Message-ID: <41330A2B.6030709@olav.dk>
Brian Wilson wrote:
> I'm pretty sure the following are correct for the time-related types. 
> I'm  not sure what the exact regexps would be for email and uri though, 
> and the  number/range ones will require some interesting expressions too:
> ----
> datetime
>    \d{4,}-W\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}.\d+)?Z

According to the latest draft, fractional seconds are optional if 
seconds are present, so it should be:
  \d{4,}-W\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(.\d+)?)?Z

same with datetime-local and time

Olav Junker Kj?r
Received on Monday, 30 August 2004 04:06:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:29 GMT