@Override
    public void configure(Map<String, ?> configs) {
        SimpleConfig simpleConfig = new SimpleConfig(config(), configs);
        Pattern result;
        String value = simpleConfig.getString(PATTERN_CONFIG);
        try {
            result = Pattern.compile(value);
        } catch (PatternSyntaxException e) {
            throw new ConfigException(PATTERN_CONFIG, value, "entry must be a Java-compatible regular expression: " + e.getMessage());
        }
        this.pattern = result;
    }
A predicate which is true for records with a topic name that matches the configured regular expression.
@param <R> The type of connect record.
connect/transforms/src/main/java/org/apache/kafka/connect/transforms/predicates/TopicNameMatches.java