Regex Tester
Test patterns against live text with matches and groups listed.
In
Presets
Out
Matches
How Regex Tester works
Your pattern compiles with the selected flags (g, i, m, s, u) and executes against the test string, listing every match with its index and capture groups.
The test string renders with matches highlighted — the fastest way to see greedy vs lazy behaviour and accidental over-matching.
A 500-match guard and 10k-character cap keep catastrophic backtracking from freezing the page; presets for email, URL, ISO dates and hex colours give safe starting points.
Worked example
The email preset [\w.+-]+@[\w-]+\.[\w.]{2,} with flags g finds all three addresses in the sample sentence, each listed with its position — and 'ana@brightlist.io' highlights the moment you paste your own text.
The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.
Frequently asked questions
Related tools
Validate, beautify and minify JSON with precise error messages.
Encode and decode Base64 safely — UTF-8 correct, URL-safe optional.
Percent-encode parameters or whole URLs — and decode them back.
Generate RFC 4122 v4 UUIDs in bulk, with formatting options.
SHA-256, SHA-384, SHA-512 and SHA-1 digests, computed locally.
Decode, inspect claims, and check expiration on JSON Web Tokens locally.
- regex
- regular expression
- pattern
- developer
- testing