Regex Tester
Test regular expressions with live match highlighting.
Pattern
//g
Test string0 matches
About this tool
Write a pattern, toggle flags, and see matches highlighted in your test string in real time. Capture groups and match indices are listed so you can debug complex expressions quickly.
How to use
- Enter a regular expression pattern and choose flags (g, i, m, s, u).
- Type or paste the text to test against.
- Matches are highlighted live and listed with their capture groups.
Examples
Pattern
(\w+)@(\w+\.\w+)
Test string
Contact ada@example.com or grace@dev.io
Frequently asked questions
JavaScript (ECMAScript) regular expressions, the same engine your browser uses.
g = global, i = ignore case, m = multiline, s = dotAll, u = unicode. Toggle any combination.