Usage of the xp20:matches() - String function -reg
818859Apr 1 2011 — edited Feb 28 2020Hi,
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