[
https://issues.apache.org/jira/browse/SYNAPSE-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168182#comment-13168182
]
Amila Maharachchi commented on SYNAPSE-827:
-------------------------------------------
Hi Kasun,
If we are using Matcher.find() and our input is "ABC", regexes "AB" and "ABC"
will both return true.
Consider the following input. "ABC Amila <[email protected]>"
With find(), regexes "[email protected]", "ABC Amila <[email protected]>", "^ABC
Amila <[email protected]>$" return true. If you want an exact match you have to
use regex 3 or 2.
BTW, these two methods have pros and cons. But I feel find() method makes life
easier for the user.
Just my view and thoughts.
Thanks,
Amila.
> Switch mediator matching the complete input with the provided regex (instead
> of a subsequence)
> ----------------------------------------------------------------------------------------------
>
> Key: SYNAPSE-827
> URL: https://issues.apache.org/jira/browse/SYNAPSE-827
> Project: Synapse
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.1
> Reporter: Amila Maharachchi
> Assignee: Kasun Indrasiri
> Attachments: SYNAPSE-827.patch
>
>
> When we provide an input and a regex to match by the Switch mediator, it
> matches the complete input with the regex instead of a subsequence. For
> example if the input is ABC and the regex is AB, it will not consider as a
> match. But ideally it is a match.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]