Test regular expressions with flags (g, i, m, u), live match highlights, capture groups, and common developer presets.
Enter your regex pattern (without outer slashes) and flags such as g (global) and i (case-insensitive). Click any preset button to load battle-tested patterns for emails, URLs, IPv4, or SemVer.
| Token | Matches | Example |
|---|---|---|
| \d / \w / \s | Digit / Word / Whitespace | \d{4} matches 2026 |
| + / * / ? | 1+ / 0+ / 0 or 1 | v?\d+ matches v2 or 2 |
| ^ / $ | Start / End of string (or line with m) | ^https:// |
| (?:...) | Non-capturing group | (?:http|https):// |
It uses your browser's native ECMAScript (JavaScript) RegExp engine, supporting lookbehinds and Unicode property escapes.
Add the 'g' (global) flag in the flags box to find all matches across the input text.
Yes, every match lists its full match and numbered capture groups ($1, $2, ...).
Beautify, validate, sort keys, and minify JSON locally in your browser.
Safely decode JWT (JSON Web Token) headers, claims, and human-readable exp/iat dates locally in your browser.
Encode and decode UTF-8 text using Base64, Base64URL, or URL percent-encoding locally in your browser.
Compare two text blocks, config files, or code snippets line-by-line with added/removed highlighting in your browser.