W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2003

Re: schema pattern matching (negate)

From: Bill de hÓra <dehora@eircom.net>
Date: Tue, 01 Jul 2003 15:22:42 +0100
Message-ID: <3F019932.1050209@eircom.net>
To: Colin Mackenzie <colin@elecmc.com>
CC: xmlschema-dev@w3.org

Colin Mackenzie wrote:

> but what is required is that pattern does not begin with a whole string 
> e.g. "STR1234" and "STRxccc" are bad (because of STR) but "SAT1234" and 
> "CARxccc" are good (not beginning with STR).
> I tried ^(STR) but this does not seem to work and
> [^S][^T][^R]
> does not allowe.g. "SAT"
> Any ideas please?

You might be out of luck. Generally, you can't use a regular 
expression to negate strings.

Bill de hÓra
Received on Tuesday, 1 July 2003 10:26:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:02 UTC