← Back to plugin index

Regex-based URI Transformer

Description
Transforms an URI using a regular expression.
Type name
RegexURITransformer
Class
com.airlock.iam.login.application.configuration.location.transform.RegexURITransformerConfig
May be used by
Properties
Pattern (pattern)
Description
The regular expression matched against the URI to replace parts or all of its content. All capture groups (i.e. expressions between parentheses) are replaced with the value of the "Replacement" property below. In case of a mismatch the result of the transformation is the original URI. Use "(.+)" to match the whole URI (".*" would match the whole input twice).
Attributes
RegEx
Mandatory
Replacement (replacement)
Description
The value to replace all matched parts of the input URI with. Variables "$1" etc. can be used to reference the matching capture groups of the "Pattern" defined above.
Attributes
String
Mandatory
Example
myhost.com
Example
/target?$1
Example
/en/
YAML Template (with default values)

type: RegexURITransformer
id: RegexURITransformer-xxxxxx
displayName: 
comment: 
properties:
  pattern:
  replacement: