Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Usage of the xp20:matches() - String function -reg

818859Apr 1 2011 — edited Feb 28 2020
Hi,

Our current requirement is that if we receive the message that matches the pattern (Ie input starting with A to L) both inclusive(for eg : A123 , B567,... ,L890),we need to perform some routing in the mediator depending upon the message. I have tried to make use of the xp20:matches() function for checking the input, as per the dev guide.

Sample code used in filter expression in mediator:
-------------------------------------------------------------------
<condition language="xpath">
<expression>xpath20:matches($in.request/cb1:singleString/cb1:input,'^[A-L]*$')</expression>
</condition>

Is there anything wrong in the usage of the matches function, as there seems to be some issues in the filter expression.
All the other logical functions and Startswith function seems to work well.

Any pointers would help.

Thanks
Swathy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2011
Added on Apr 1 2011
4 comments
663 views