Skip to content
Sumly

Regex Tester

Test patterns against live text with matches and groups listed.

In

//

Presets

Out

3 matches
Ping ana@brightlist.io and ops+alerts@tooldeck.example before Friday, cc dev@tooldeck.example.

Matches

ana@brightlist.io@ 5
ops+alerts@tooldeck.example@ 27
dev@tooldeck.example.@ 73
Every match is evaluated locally with a 500-match guard. Use named groups (?<name>…) in production code — the numbered list above shows why names read better.

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

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