DM Regex Matching Issue

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: dm 正则匹配问题

| username: Tiny

[TiDB Usage Environment] Production
[TiDB Version] v8.1.0
[Reproduction Path]
In the DM task configuration file, an unexpected table was matched. Part of the configuration is as follows:

    do-dbs: ["aaa", "bbb", "ccc"]          # Names
    - db-name: "~aaa|bbb|ccc"
      tbl-name: "~client_task|common_currency_day_log"

[Encountered Problem: Phenomenon and Impact]
According to the above configuration, only the client_task and common_currency_day_log tables should be matched for migration.
However, in reality, the client_task_tmp table was also matched, resulting in a total of three tables being migrated.

How can this be resolved?

| username: TiDBer_QYr0vohO | Original post link


| username: Tiny | Original post link

Testing is fine, thank you.

| username: TiDBer_QYr0vohO | Original post link