Regex tester
Test JavaScript regular expressions with live match highlighting and groups.
Pattern
/ /
Flags
Matches
Runs locally in your browser. Nothing is uploaded.
How to use
- Enter the pattern and flags.
- Paste the text to test against.
- Matches are highlighted; groups are listed below.
Questions
Which regex flavor is this?
JavaScript (ECMAScript). Most patterns from PCRE and Python work the same, except for lookbehind in older browsers and some named-group syntax.