- From: Eddie Robertsson <eddie@allette.com.au>
- Date: Sun, 02 Sep 2001 17:14:12 +1000
- To: "Gebbet, Mark" <Mark.Gebbet@uk.yokogawa-marex.com>
- CC: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi Mark, "Gebbet, Mark" wrote: > 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? I don't think there is an easier way to do this but I'm not 100% sure. Cheers, /Eddie
Received on Sunday, 2 September 2001 03:14:47 UTC