Regex Tester
Test JavaScript regular expressions quickly and securely in your browser.
//
Test and debug your JavaScript regular expressions instantly. See real-time matches, capture groups, and indices.
How to Use
- Enter your regex pattern.
- Specify any flags (e.g. 'g', 'i', 'm').
- Enter your test string.
- Review the matches and capture groups highlighted below.
Examples
Matching Numbers
Pattern 'd+' with flag 'g' will extract all numbers from a string.