[ 
https://issues.apache.org/jira/browse/SYNAPSE-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167652#comment-13167652
 ] 

Kasun Indrasiri commented on SYNAPSE-827:
-----------------------------------------

Hi Amila,

If the input is "ABC" then if you need to get a match for "AB", then we can 
have to use regex  "AB*.". If we change 'matches' to 'find', then we might not 
be able to handle the cases where we need to do a exact matching. WDYT?
                
> 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]

Reply via email to