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

Re: schema pattern matching (negate)

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Tue, 01 Jul 2003 15:26:02 +0100
To: "Colin Mackenzie" <colin@elecmc.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bwuf2fhmt.fsf@erasmus.inf.ed.ac.uk>

"Colin Mackenzie" <colin@elecmc.com> writes:

> Hi,
>
> I am trying to answer a post from the comp.text.xml newsgroup.
>
> question asked how to negate strings in XSD pattern matching regular
> expressions
>
> I answerd to use caret ^
>
> e.g.
> [^S]
>
> 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"

I don't know of any way to do this, sorry.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 1 July 2003 10:26:03 GMT

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