Browser-only tool
Regex tester
Enter a JavaScript regular expression and sample text to inspect matches, groups, and flags locally in the browser.
Browser-only tool
Enter a JavaScript regular expression and sample text to inspect matches, groups, and flags locally in the browser.
Warning: complex regex patterns can be slow or unsafe on large input. JavaScript regex behavior can differ from other languages.
Patterns and sample text are processed locally in your browser and are not uploaded.
The browser JavaScript RegExp engine is used, so behavior can differ from PCRE, Python, Java, or .NET.
ReDoS is a denial-of-service risk caused by regex patterns with catastrophic backtracking on certain inputs.
No. It is useful for exploration, but production patterns should be tested in the same runtime as the app.
No. Matching runs locally in the browser.
Flags such as g, i, m, s, u, and y change matching behavior and output.