The configuration for the URL Extractor to Header filter should support regular expressions with multiple capture groups where each captured value is added to the configured header. Right now, only the first capture group is used. This change will make configuration more concise when multiple values need to be extracted, as will be the case for some multi-tenant APIs using authorization.
Note that a capture group can be ignored by prefixing it with ?: as in the following regular expression (?:prefix\/)?/([^\/]+)(?:\/.*)?
This will be a Major version change since existing configuration might have multiple capture groups that would have been previously ignored prior to this change but could impact whether or not a request is allowed after this change.
You could achieve this using this:
- Multiple header values are captured (i.e. each capture group is placed in the header).