常用速查库:
Presets:
/
/
匹配明细
Match Details
0
字符簇
\d 数字 [0-9]\w 字母数字下划线\s 空白字符 (空格/Tab/换行)
Character Classes
\d Digits [0-9]\w Word characters [A-Za-z0-9_]\s Whitespaces (spaces, tabs, newlines)
量词
+ 1次或多次* 0次或多次? 0次或1次{n,m} n 到 m 次
Quantifiers
+ 1 or more* 0 or more? 0 or 1{n,m} between n and m times
边界锚点
^ 行/字符串起始$ 行/字符串结尾\b 单词边界
Anchors
^ Start of line/string$ End of line/string\b Word boundary
分组与断言
(...) 捕获分组(?:...) 非捕获分组(?=...) 正向前瞻断言
Groups & Lookaround
(...) Capturing group(?:...) Non-capturing group(?=...) Positive lookahead