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 » URGENT-WMB:Regular Expression for Data pattern in MessageSet

Post new topic  Reply to topic
 URGENT-WMB:Regular Expression for Data pattern in MessageSet « View previous topic :: View next topic » 
Author Message
SDS
PostPosted: Wed Jun 15, 2011 1:05 am    Post subject: URGENT-WMB:Regular Expression for Data pattern in MessageSet Reply with quote

Apprentice

Joined: 13 Jun 2011
Posts: 47

Hi,

I am having a little experience in WMB. Currently working in WMB7.0.0.2 & got stuck with a problem.
I need to give a regular expression in the data pattern field for a message set definition file to validate a message in hex format.
The condition is the data pattern should validate the hex message string having double quote (") only in start & end of the string. Also it should not give any parsing error if any double quote (") comes in the middle of the string.
Please help me out. Thanks in advance.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jun 16, 2011 1:35 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I can help, but I need more information first...

Please can you give more details about what your message flow is doing. Are you parsing a CSV ( comma-separated values ) message? If not, please describe the data format, and provide an example if possible.
Back to top
View user's profile Send private message
SDS
PostPosted: Thu Jun 16, 2011 1:46 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2011
Posts: 47

Hey Kimbert,

Thanks a lot friend for your approach.
I've done it finally today...
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jun 16, 2011 3:26 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Would you care to share the solution with the rest of us mere mortals?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
SDS
PostPosted: Fri Jun 17, 2011 1:28 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2011
Posts: 47

yeah.. why not!

actually my hex input message was huge..
here I'm giving only two strings for example..

String 1=> ":óI::::94:::::::::::"
String 2=> ".:ð:ð:ð:ð::S":™"

likewise, there were several hex strings separated by ','

at first my data pattern was validating the 1st string only and it was failing to parse the 2nd string as it had an extra double quote (") in middle of the string also.

finally, I made the data pattern as
(([^:"])|("[^,:\r])|(",[^"])|("\r[^\n])|("))*
and now it is validating the 2nd string also recognizing the extra double quote in the middle of the string.
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 » URGENT-WMB:Regular Expression for Data pattern in MessageSet
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.