Regex Tester
Test a regular expression against your text and see every match with its capture groups and position. Runs in your browser.
How it works
- 1
Enter your pattern
Like \d+ or [a-z]+@[a-z]+\.com.
- 2
Set the flags
g, i, m, s, u or y — g is added automatically.
- 3
Paste your text
Matches and groups are listed instantly.
Related tools
Other tools people use right after this one.
Built to get out of your way
487
Tools available
6
Languages
0
Watermarks added
2h
Until your files are erased
100%
Free to start
∞
Devices supported
Frequently asked questions
JavaScript (ECMAScript) regular expressions.
Testing regular expressions safely
Regular expressions are powerful but easy to get wrong. Testing a pattern against real sample text before putting it in code catches mistakes early and shows exactly what each capture group grabs.
This tester uses your browser’s own JavaScript regex engine, so results match what you will get in JavaScript and TypeScript code.