|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Issue with Pattern Matching in Message set |
« View previous topic :: View next topic » |
Author |
Message
|
mahesh2069 |
Posted: Fri May 16, 2014 3:37 am Post subject: Issue with Pattern Matching in Message set |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi All,
I have a message like bellow
Code: |
0092370339Oab 123 erff
0092370339Pbn 786 rteg
0092370339Pbn 786 rteg
0093376039Skl 879 retx
0092370339Oab 123 erff
0092370339Pbn 786 rteg
0092370339Pbn 786 rteg
|
In one O_P_S_RECORD message , conatin first type as O-type ,1 to many occurence of P-type, 0 to many occurence of S-type message are possible to come.
This O_P_S_RECORD message will be repeated.
O-type record 11 th element is O,
P-type record 11 th element is P,
S-type record 11th element is S
My idea is using data pattern we can find the which type of message either
O-type , P-type or S-type.
My problem is pattern matching Regular Expression
Can you help me to suggest the Regular expression to know 11th character is O,P or S.
I tried with expression [\d{10}+S{1}] but this is not working.Please help me to resolve this issue. _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
kimbert |
Posted: Fri May 16, 2014 4:12 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I assume you are on v7? Otherwise, DFDL would be a much easier route to a solution. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
kimbert |
Posted: Fri May 16, 2014 4:23 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
mahesh2069 |
Posted: Fri May 16, 2014 4:55 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi kimbert,
Yes Kimbert, I want to create message set using pattern matching.So I want to know 11th Character ,So can you help me to suggest valid Regular Expression. _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
mahesh2069 |
Posted: Fri May 16, 2014 4:57 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi kimbert,
I am using IIB9.Using data pattern to find the which type of message is recommend??? _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
kimbert |
Posted: Fri May 16, 2014 5:51 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please do not double-post. It makes it hard for future readers to understand and benefit from the advice given.
If you are using IIB v9 then why are you not using DFDL for this? _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|