Re: schema pattern matching (negate)

"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 UTC