ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » [Solved] Invalid Regular expression when importing xsd.

Post new topic  Reply to topic
 [Solved] Invalid Regular expression when importing xsd. « View previous topic :: View next topic » 
Author Message
PieterV
PostPosted: Wed Jul 19, 2006 12:57 am    Post subject: [Solved] Invalid Regular expression when importing xsd. Reply with quote

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
Back to top
View user's profile Send private message
juddg
PostPosted: Wed Jul 19, 2006 1:42 am    Post subject: Problem with the dash (-) character Reply with quote

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 :

Code:
([\.a-zA-Z0-9_\-])+@([a-zA-Z0-9_\-])+(([a-zA-Z0-9_\-])*\.([a-zA-Z0-9_\-])+)+


Regards,

juddg.
Back to top
View user's profile Send private message
PieterV
PostPosted: Wed Jul 19, 2006 2:15 am    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

aha, thank you.

it works indeed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » [Solved] Invalid Regular expression when importing xsd.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.