Test JavaScript regex patterns locally
Paste a pattern and sample text to inspect matches, capture groups, named groups, flags, and replacement output. Use it while building validators, parsers, search filters, and cleanup scripts, with sample text processed in your browser.
Matches, groups, and replacements
The tester uses JavaScript regular expression behavior, so flags like global, ignore case, multiline, dotAll, unicode, and sticky match what your browser or Node.js code will run. Replacement output follows native JavaScript replacement syntax, including numbered and named capture references.
Related developer tools
Use the JSON Formatter & Validator when checking structured sample payloads, or the URL Encoder & Decoder when testing patterns against encoded query strings.