Browser-local developer utility

Regex Tester

Test a JavaScript regular expression against plain text and inspect up to 100 matches, positions, and capture groups.

Use JavaScript flags such as g, i, m, s, u, or y.

Enter input to begin.

Method

The pattern runs in a disposable local Web Worker. The worker is terminated after 300 milliseconds to reduce the risk of a pathological pattern blocking the page. Results are rendered as inert text.

Limits and assumptions

Patterns are limited to 500 characters and test text to 1 MB. JavaScript regular-expression syntax and flags apply. A timeout is a practical browser safeguard, not proof that a pattern is efficient or safe in every application.

Related developer tools

Browse all Developer Tools.