正则测试器
实时测试正则表达式。
Enter a regular expression and a test string to see matches and capture groups live. Toggle the g, i, m, s and u flags. Everything runs locally in your browser using the JavaScript regex engine.
工作原理
- 1 Type your regular expression.
- 2 Toggle the flags you need.
- 3 Paste a test string to see matches and groups.
常见用例
- Build and debug a pattern.
- Check capture groups.
- Validate input formats.
- Learn how a regex behaves.
常见问题
Is my input sent to a server?
No. Everything runs locally in your browser — your input is never uploaded, stored or logged.
Which regex flavour is used?
JavaScript's RegExp engine, matching what runs in browsers and Node.js.
Is there an input limit?
Test text is capped at 50,000 characters to avoid slow patterns (catastrophic backtracking) freezing the page.
Is it really free?
Yes — free, with no signup and no limits.