Regex Tester
正则表达式测试器
测试 and debug regular expressions with real-time matching and highlighting. 验证 patterns, test multiple strings, and understand regex behavior instantly.
正则表达式测试工具
正则表达式测试结果
模式分析
快速正则表达式模式
关于正则表达式
常见元字符
^- Start of string/line
$- End of string/line
.- Any character (except newline)
*- Zero or more repetitions
+- One or more repetitions
?- Zero or one repetition
字符类
[ABC]- Any character from set
[^abc]- Any character not in set
\d- Any digit [0-9]
\w- Word character [a-zA-Z0-9_]
\s- Whitespace character
\b- Word boundary
正则表达式标志解释
g(全球)
Find all matches, not just the first one
i(不区分大小写)
Ignore case when matching
m(多行)
Treat string as multiple lines
s(点全部)
Allow . to match newline characters
u(统一码)
Enable full Unicode support
y(粘性)
Match only from the lastIndex position
仅供教育目的。请咨询合格的专业人士获取财务或医疗建议。
更多 开发View all