ToolSprinkle.

Regex tester

Test JavaScript regular expressions with matches, offsets and capture groups.

PROCESSED ON YOUR DEVICE

Ready when you are.

◎ No uploads. Your input stays here.↗ Free to use. No account needed.⌘ / Ctrl + Enter to run

A worked example

Indices are zero-based JavaScript string positions. This example finds an email-like string; it is not comprehensive email validation.

Input / settings

Text: [email protected]
Pattern: [\w.+-]+@[\w.-]+\.[a-zA-Z]{2,}
Flags: gi

Expected result

1 match: [email protected], starting at index 0
A LITTLE GUIDANCE

How to use Regex tester

Enter a pattern without slash delimiters, flags and sample text. Matching runs in a time-limited worker.

Good to know

Uses the JavaScript regex engine. PCRE-specific syntax is not supported; expensive expressions are stopped after one second.

A few quick answers.

Why does a valid pattern time out?

Some patterns have excessive backtracking. The test runs in a worker and stops after one second. Try fewer nested quantifiers or shorter input; results are capped at 1,000 matches.

Is my input sent to a server?

No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.

Can I use it for free?

Yes. No account, subscription or usage credits are required.

How do I keep my result?

Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.

Keep your flow going.

More developer tools ↗

What would you like to do?

↑ ↓ Navigate · Enter Open · Esc Close. Switching tools clears unsaved input.