Smart Groups
This is an advanced feature due to the usage of regular expressions. This provides a poor
readability and non-technical people should be assisted in order to use it.
Simplify topics or subjects name
Let’s say we have many topics (or subjects) with a complex naming convention. The feature is accessible through the visibility button on topics or on schema registry (disabled by default):

- We setup regular expressions (as many as we want)
- We pick one group to be the name of the entity in the listing (instead of the long name)
To create columns from parts, we must use Named Capturing Groups.
https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html
- Our parts are separated by dashes
- We match and ignore the prefix “google-” because we don’t want to see it
- They look alike but the first one has one more group named Trigram because in our example, some topics have it “-TCO-”, others don’t
- There are 4 groups here: App, Env, Trigram, topic
- “topic” appears in both expressions: we want to “merge” the resulting values (extracted from the topic name) into the same column
- “topic” is the part we want to use as main name in our listing

The usage of regular expressions is necessary but we may provide a wizard later to simplify this
step. Don’t hesitate to contact us if that matters to you.