More flexible options for RegexRouter to replace string

Hi, I want to get advice and suggest for replacing string of the topic.

Is it possible to giving some function or option such as drop / replace / join / etc?

Source String: server_name.db_name.table_name_suffix1
Expected String: prefix-tablename
“transforms.AddPrefix.regex”="${regex}" 
“transforms.AddPrefix.function”=“drop $3, “_””
“transforms.AddPrefix.replacement”=“prefix-${function}”

Or it would be good to provide another transform option.

“transforms”: “StringFunction”,
“transforms.StringFunction.regex”="${regex}" 
“transforms.StringFunction.function”=“drop $3, “_””
“transforms.StringFunction.replacement”=“prefix-${function}”
1 Like