> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/regex.md).

# 正则表达式

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-6271ec3e7c5c9d97409fb7fdfd45798032459042%2FBildschirmfoto%202024-05-08%20um%2009.38.59.png?alt=media" alt=""><figcaption><p>管理正则表达式</p></figcaption></figure>

在 DocBits 中，正则表达式设置允许管理员定义自定义模式，系统会使用这些模式在文档中查找并提取数据。此功能在需要从非结构化文本中提取数据，或数据遵循可通过正则表达式模式匹配的可预测格式时尤其有用。

#### 主要功能和选项

1. **管理正则表达式**：

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-6271ec3e7c5c9d97409fb7fdfd45798032459042%2FBildschirmfoto%202024-05-08%20um%2009.38.59.png?alt=media" alt=""><figcaption><p>管理正则表达式</p></figcaption></figure>

**管理正则表达式**：

* **添加**：允许您为特定文档类型创建新的正则表达式模式。
* **保存更改**：保存对现有正则表达式配置所做的修改。
* **模式**：在此处定义与所需特定数据格式匹配的正则表达式模式。
* **来源**：即文档来源。例如，您可以为德国定义不同的正则表达式。


---

# 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://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/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.
