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 » Element should not start or end with ':'

Post new topic  Reply to topic
 Element should not start or end with ':' « View previous topic :: View next topic » 
Author Message
John_peter
PostPosted: Thu May 27, 2004 9:16 pm    Post subject: Element should not start or end with ':' Reply with quote

Novice

Joined: 10 May 2004
Posts: 22

How do use the regular expression for the pattern value constraint to impose a restriction that the element should not start or end with a colon?

I can do it at the ESQL level ,but can I not impose that in the message set?
Back to top
View user's profile Send private message
rajaram
PostPosted: Mon May 31, 2004 6:02 am    Post subject: Reply with quote

Acolyte

Joined: 02 Jan 2004
Posts: 53

Hi,

I am assuming that Colons will always come in the message,
and the data may be like ":data:"

U cannot Ignore the Colons. What u shoud do is store the begining colon in one Element(EL_COL1) in the message and the ending Colon(EL_COL2) in One element in the message and the content between the Colons in Another Variable(Field1).

First Create a Compound Type(CTYPE), with Data Element Separation Property to Data Pattern. Now, Create the elements Described above under this CTYPE in the following order:EL_COL1,FIELD1,EL_COL2. Field1 will contain the Data that u r looking for.

Now, For all the 3 elements, EL_COL1,FIELD1,EL_COL2, use the datapattern at the element level as follows.

fOR EL_COL1,set the data pattern to ':' .
for FIELD1, set the data pattern is [^:]* (this stands for anything until a colon comes)
for EL_COL2, set the data pattern is ':'.


If this is Confusing, Please let me know..


Thanks,
Raja






[/code]
Back to top
View user's profile Send private message
John_peter
PostPosted: Thu Jun 03, 2004 12:26 am    Post subject: Reply with quote

Novice

Joined: 10 May 2004
Posts: 22

I used this pattern [a-zA-Z0-9/\?\(\)\.,'\+\{\} ]([a-zA-Z0-9/\-\?:\(\)\.,'\+\{\} ]*[^\-])*

and it worked!

Thanks
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 » Element should not start or end with ':'
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.