> For the complete documentation index, see [llms.txt](https://brianwu.gitbook.io/brian/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brianwu.gitbook.io/brian/brians-za-ji/zheng-gui-biao-shi-fa.md).

# 正規表示法

參考資料:(<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]
```
