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>

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


<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?


Received on Thursday, 30 August 2001 06:10:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC