Extract Variable Pattern ignoring commas

Below is the EV code

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExtractVariables continueOnError="false" enabled="true" name="EV-EmpList">
    <DisplayName>EV-EmpList</DisplayName>
    <URIPath>
        <Pattern>/workers/emplist/{EmployeeList}</Pattern>
    </URIPath>
    <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
    <Source clearPayload="false">request</Source>
</ExtractVariables>

When I call proxy where {EmployeeList} are values separated by commas(say 1223,45,888) it just picks the first value which is 1223.

I want to capture all values .

How can this be achieved ?

0 1 72
1 REPLY 1

Yes, that is a quirk of the URIPath behavior.  If you want commas as well, you can use the Variable element. 

<ExtractVariables name="EV-GetUriPathElement">
   <URIPath>
    <!-- if the path segment has commas, this will get just the first item --> 
    <Pattern ignoreCase="true">/collection/{element2a}</Pattern>
  </URIPath>
  <Variable name="proxy.pathsuffix">
    <!-- if the path segment has commas, this will get all items --> 
    <Pattern ignoreCase="true">/collection/{element2b}</Pattern>
  </Variable>
</ExtractVariables>