You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Lan Ding (Jira)" <ji...@apache.org> on 2025/11/13 09:32:00 UTC

[jira] [Created] (KAFKA-19887) Add separate option for topic regex pattern matching in tools

Lan Ding created KAFKA-19887:
--------------------------------

             Summary:  Add separate option for topic regex pattern matching in tools
                 Key: KAFKA-19887
                 URL: https://issues.apache.org/jira/browse/KAFKA-19887
             Project: Kafka
          Issue Type: Improvement
            Reporter: Lan Ding
            Assignee: Lan Ding


see [https://github.com/apache/kafka/pull/20865#discussion_r2522364991]

Currently, the {{--topic}} option in kafka-topics.sh serves dual purposes - it accepts both literal topic names and regex patterns, which causes ambiguity and usability issues. This is particularly problematic for topic names containing dots (.) and other regex metacharacters.

*Implementation Plan:*
 # 4.x: Introduce the new regex option and deprecate regex usage in {{--topic}}

 # 5.x: Remove regex functionality from {{--topic}} option entirely

This improvement could also be extended to all other scripts that support regex patterns for consistency.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)