Regex Tester
Test a regular expression against sample text and see matches highlighted live. Uses JavaScript's regex engine.
Processed 100% locally in your browser
g = global, find every match instead of stopping at the first one. See the full flag reference below.
Tests automatically as you type. Tip: press Ctrl+Enter (Cmd+Enter on Mac) to test immediately.
Common patterns
Click to load a ready-made pattern into the tester above.
Common flags
| Flag | Meaning |
|---|---|
g | Global — find all matches, not just the first |
i | Case-insensitive |
m | Multiline — ^ and $ match line boundaries |
s | Dot matches newline characters too |