W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Case insensitive pattern matching

From: Gebbet, Mark <Mark.Gebbet@uk.yokogawa-marex.com>
Date: Wed, 29 Aug 2001 11:03:32 -0400 (EDT)
Message-ID: <3B9B42DB0674D111A9BE00A0C94C8F58013CF730@marex-nt-1.corp.yokogawa-marex.com>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi,

I am trying to validate using regular expressions but I dont want it to be
case sensitive.

e.g

<xsd:pattern value="NOW ?[+-] ?\d ?HOUR(S)?"/>

I could make it work by doing something like,

<xsd:pattern value="[Nn][Oo][Ww] ?[+-] ?\d ?[Hh][Oo][Uu][Rr]([Ss])?"/>

But it quickly becomes painful and hard to read.

Is there any switch to turn off case sensitivity?

Regards,

Mark
Received on Thursday, 30 August 2001 06:10:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:23 GMT