Other Dev Tools

Regex Tester

Test JavaScript regular expressions, capture groups, flags, and replacements locally.

Mode
Flags
2 matches
Highlighted text
uuid-v7 uuid-v4 not-a-match
Matches
uuid-v70-7
Captures
$1: v7
uuid-v48-15
Captures
$1: v4

Runs locally in your browser. Your pattern and test text are not sent to a server.

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.