REGEX TESTER
Test regex, with instant highlighting.
Type a pattern and test text, then watch live highlights, match counts and capture groups — or start from a built-in preset.
Test text
联系我:13800138000,邮箱 hello@example.com,网址 https://tushuoit.com/xx/
1 match(es) found
- Match 1 at index 4:13800138000
Everything runs locally in your browser
What does this tool do?
Write a pattern and see results instantly: matches are highlighted in the text, and each match’s position and capture groups are listed below — no more guessing.
FAQ
Which flags are supported?
All JavaScript regex flags: g (global), i (ignore case), m (multiline), s (dotAll), u (Unicode), etc.
Is my text uploaded?
No. Matching happens entirely in your browser.
使用步骤How to use
- 输入正则与待测文本Enter the pattern and the test text
- 选择修饰符(g / i / m / s),实时看匹配高亮Pick flags (g / i / m / s) and watch matches highlight
- 查看分组结果并复制替换后的文本Inspect groups and copy the replaced text