> 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、类别或促销代码进行匹配时，可以使用匹配表达式工具。只有在你没有某个 [例外列表](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/account-administration/program-settings/exception-lists/create-category-and-sku-exception-lists.md).

1. 在顶部导航栏中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2F210dEQa93qyQgoJDkieL%2FUser%20profile.svg?alt=media\&token=f84c5b17-fae4-4a30-990a-9de5e57a150b) **\[用户个人资料] → 设置**.
2. 在右侧栏的 *例外列表*下方，选择 *例外列表* 部分中，选择 **SKU**.
3. 选择 **添加新 SKU 列表**.
4. 选择 **显示高级设置** ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-500f241687470b7f2c6cf43ec949c2463692cd19%2F0323174d38f3b23e95ed28b6734e6af44b570eec2eecb0ea9f2e0f064962b5fb.svg?alt=media).
5. 在“匹配表达式”字段中，匹配表达式工具包含两个重要组成部分：

   <div data-with-frame="true"><figure><img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fo0oA9Jgl9iotRSvygzEZ%2FScreenshot%202026-05-07%20at%2009.46.16.png?alt=media&amp;token=ceb272c6-fc6f-45ff-b799-8e6b35f840c8" alt="" width="563"><figcaption></figcaption></figure></div>

   | 组成部分                                                                                                                                                               | 说明                           |
   | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------- |
   | [括号内的正则表达式](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/promo-codes/regular-expression/regex-inside-the-parentheses.md)  | 与配套例外列表中的项目进行精确匹配。           |
   | [括号外的正则表达式](https://help.impact.com/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
