Posted: Wed Jul 19, 2006 12:57 am Post subject: [Solved] Invalid Regular expression when importing xsd.
Disciple
Joined: 04 Jan 2006 Posts: 164 Location: Belgium
I have imported a xsd file to create a message definition file
The xsd file was validated in XML Spy and didnt report any errors but in the Toolkit I receive the following error.
Simple Type Definition '#token -' has a pattern facet with value '([\.a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(([a-zA-Z0-9_-])*\.([a-zA-Z0-9_-])+)+', which is not a valid regular expression.
There is probaly some character in the pattern that the Toolkit doesnt like, and unfortunaly he don't mark which one.
Has anybody any idea what it could be?
Last edited by PieterV on Wed Jul 19, 2006 11:54 pm; edited 1 time in total
Posted: Wed Jul 19, 2006 1:42 am Post subject: Problem with the dash (-) character
Apprentice
Joined: 22 Nov 2004 Posts: 33
Hi,
The problem appears to be with the dash characters at the end of the character class expressions. If the dash is intended to be interpretted literally it must be escaped because on its own it will be handled as specifying a range. The following modified regular expresson will be accepted by the Toolkit :
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum