Important
You are viewing documentation for an older version of Confluent Platform. For the latest, click here.
RegexRouter¶
Description¶
Update the record’s topic using the configured regular expression and replacement string.
Under the hood, the regex is compiled to a java.util.regex.Pattern
. If the pattern matches the input topic, java.util.regex.Matcher#replaceFirst()
is used with the replacement string to obtain the new topic.
Properties¶
Name | Description | Type | Default | Valid Values | Importance |
---|---|---|---|---|---|
regex |
Regular expression to use for matching. | string | valid regex | high | |
replacement |
Replacement string. | string | high |