# 正規表示法

參考資料:(<https://msdn.microsoft.com/zh-tw/library/system.text.regularexpressions.regex%28v=vs.110%29.aspx>)

參考資料:(<https://zh.wikipedia.org/wiki/正则表达式>)

參考資料:正規表示式 Regular Expression(<https://atedev.wordpress.com/2007/11/23/正規表示式-regular-expression>)

參考資料:(<https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Guide/Regular_Expressions>)

## 線上工具 regex101.com

<https://regex101.com/>

```
\\  溢出字元

^ 匹配輸入的開頭

$ 匹配輸入的結尾

* 出現0~多次

+ 出現1~多次

? 匹配0~1次

(x) 

(?:x)

x(?=y)

x(?!y)

x|y 符合 x 或 y

{n} 規定符號確切出現次數

{n,m} n為最少，m為最多。

[xyz] 字元的集合。

[^xyz] xyz以外的集合。

[\b]
```


---

# Agent Instructions: 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:

```
GET https://brianwu.gitbook.io/brian/brians-za-ji/zheng-gui-biao-shi-fa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
