BoxStow

tool.regex-test.title

tool.regex-test.desc
English
🔤 tool.regex-test.regex
//g
g tool.regex-test.global
i tool.regex-test.ignoreCase
m tool.regex-test.multiLine
s tool.regex-test.dotAll
u Unicode
📌 tool.regex-test.commonPatterns
📥 tool.regex-test.testText
📚 tool.regex-test.syntaxRef
tool.regex-test.symboltool.regex-test.description
.匹配任意单个字符(除换行符)
*匹配前一个字符 0 次或多次
+匹配前一个字符 1 次或多次
?匹配前一个字符 0 次或 1 次
{n}匹配前一个字符恰好 n 次
{n,}匹配前一个字符至少 n 次
{n,m}匹配前一个字符 n 到 m 次
^匹配字符串开头
$匹配字符串结尾
[]字符组,匹配其中任意一个字符
[^]否定字符组
|或运算符
()分组,捕获匹配内容
\d匹配数字 [0-9]
\D匹配非数字
\w匹配字母、数字、下划线
\W匹配非单词字符
\s匹配空白字符
\S匹配非空白字符
📋
💡 You might also use:
Use Now
Popular Tools
Similar Tools

Test your regular expressions in real-time with our interactive Regex Tester. Paste your pattern, enter test strings, and see matches highlighted instantly with detailed capture group information.

This tool supports JavaScript regex syntax with flags for global matching (g), case-insensitive (i), multiline (m), and more. Watch matches update as you type, making it perfect for debugging complex patterns.

Frequently Asked Questions

What regex flags are supported?

All JavaScript regex flags are supported: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), and y (sticky).

Can I test multi-line patterns?

Yes. Enable the multiline flag (m) to make ^ and $ match the start and end of each line, not just the entire string.