Utilities
Regex tester
Test JavaScript regular expressions with highlighted matches and capture groups.
Private Everything on these pages runs in your browser. What you type is never sent to a server and nothing is stored.
Matches
JavaScript (ECMAScript) syntax. The pattern runs in a background thread and is stopped after 1.5 seconds.
How to use it
- Enter the pattern and choose the flags.
- Paste the text to test.
- See the highlighted matches and the capture groups of each match.
Example
Input
/(\d{4})-(\d{2})-(\d{2})/ on 2026-11-22Result
Match 2026-11-22, groups 2026, 11, 22Frequently asked questions
Which regex flavour is this?
JavaScript (ECMAScript). Other languages differ in details such as lookbehind support, named groups and Unicode classes, so retest in your own language.
What happens with a catastrophic pattern?
The pattern runs in a background worker with a time limit. If it takes too long the test is stopped and you are told, instead of freezing the tab.