Regex Tester
Test JavaScript regular expressions against text
Start
Matches: 2
fooat index 0fooooat index 7
Description
Experiment with JavaScript regular expressions and see live matches, indexes, and errors.
Key features
- Pattern + flags input with validation
- Global and single‑match modes
- Readable list of matches and positions
How to Use
- Enter a pattern (e.g.,
foo+) and flags (e.g.,gi). - Paste test text and review the matches.
Example
Example
foo+ over “foobar foooo bar” finds “foo” and “foooo”.
FAQ
“Invalid pattern”?
Check for bad escapes or unsupported syntax.
No matches?
Try removing the g flag to see a single match.