> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/promo-codes/regular-expression/match-expression-tool-regex.md).

# 匹配表达式工具正则

当你知道产品 SKU、类别或促销代码中的部分字符组合，并希望将这些字符组合与随转化传入的 SKU、类别或促销代码进行匹配时，就会使用匹配表达式工具。只有当你没有完整的项目列表时，才需要使用此工具在一个 [例外列表](/brand/zh/what-would-you-like-to-learn-about/account-administration/program-settings/exception-lists/create-category-and-sku-exception-lists.md).

1. 从顶部导航栏中，选择 ![](/files/1cbb667ec4878308f24ec4acd13cbf03ede0bdfe) **\[User profile] → Settings**.
2. 在右侧列中，下面 *例外列表*下，选择 *例外列表* 部分下，选择 **SKU**.
3. 选择 **添加新的 SKU 列表**.
4. 选择 **显示高级设置** ![](/files/bfd64eeb089ad3f4ad099b98dcba9275c62df4c0).
5. 在“匹配表达式”字段中，这是匹配表达式工具的 2 个重要组成部分：

   <div data-with-frame="true"><figure><img src="/files/726b87c4d7fefa218a898247772874a5a9892523" alt="" width="563"><figcaption></figcaption></figure></div>

   | 组件                                                                                                                                          | 说明                          |
   | ------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
   | [括号内的正则表达式](/brand/zh/what-would-you-like-to-learn-about/platform-features/promo-codes/regular-expression/regex-inside-the-parentheses.md)  | 与配套的例外列表中的项目完全匹配。           |
   | [括号外的正则表达式](/brand/zh/what-would-you-like-to-learn-about/platform-features/promo-codes/regular-expression/regex-outside-the-parentheses.md) | 为例外列表中的项目设置与传入的转化数据进行匹配的条件。 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/promo-codes/regular-expression/match-expression-tool-regex.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
