- From: Eddie Robertsson <eddie@allette.com.au>
- Date: Wed, 26 Sep 2001 09:28:58 +1000
- To: Michael Petres <michaelp@innovobjx.com>
- CC: xmlschema-dev@w3.org
Hi Michael,
> I've recently attempted to convert a schema (used
> "http://www.w3.org/2000/10/XMLSchema") to the latest version supported by
> XMLSpy ("http://www.w3.org/2001/XMLSchema").
>
> I am having problems with some regular expressions that used to work?!?
> For instance the following expression:
> value="(([a-z]|[A-Z]|[0-9]|[\+\/\n=])+)*" fails with the message "Invalid
> Regular Expression: &# expected at position 23"
I suspect that the problem is the sequence "\/" in the regexp above. You use
the "\" character as an escape character to allow characters that otherwise
have a special meaning like "\+". However "/" is not a special character so
if you want to allow this character you only enter this character like:
"(([a-z]|[A-Z]|[0-9]|[\+/\n=])+)*"
If your intension is to allow both "/" and "\" you need to insert an extra
"\" before the "\" like:
"(([a-z]|[A-Z]|[0-9]|[\+\\/\n=])+)*"
Try this and see if that works.
Cheers,
/Eddie
>
>
> Could someone help me out with the "new" form that will work?
>
> Michael Petres
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> InnovObjX Corporation
> <mailto:michaelp@innovobjx.com>
> <http://www.innovobjx.com>
> Tel: 905-729-2235 ext.61, Fax:905-729-0754
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Tuesday, 25 September 2001 19:22:25 UTC