Example input
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b
gi
Contact: ada@example.com
DataHub
Tools
Regex Tester
Local-first
Test regular expressions against sample text locally and inspect matches for debugging and validation.
Test regular expressions against sample text locally and inspect matches for debugging and validation.
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b
gi
Contact: ada@example.com#1: ada@example.com
index: 9The tester uses JavaScript RegExp semantics and ensures global matching. Patterns from other engines may behave differently.
This page uses the browser's JavaScript RegExp implementation. Regex syntax and features can differ from PCRE, RE2, Python, Java, and server-side engines.
Sources checked July 24, 2026. Standards can change; review the source pages before formal integration.
They are optional. A valid /pattern/flags form is recognized; otherwise line 1 is used exactly as the pattern.
Put flags such as gi or gm on line 2. If omitted, the tool uses g for global matching.
Yes. A slash inside a plain pattern is preserved and is not mistaken for flags.
The page uses the browser's JavaScript RegExp engine, whose syntax and features differ from other engines.
A pattern with catastrophic backtracking can become slow on large text, so test with bounded samples.