Regex Tester
Test a regular expression against sample text — matches highlight live.
Preview appears here.
How it works
- 1
Write a pattern
Enter your regex, without the surrounding slashes.
- 2
Set flags
Add g, i, m, or s as needed — g (global) is on by default.
- 3
Paste sample text
See every match highlighted instantly.