Loading…
Loading…
regex tester
Write a regular expression and test it against any string with live match and capture group highlighting — useful for pattern matching, input validation, and text extraction.
Last reviewed
June 23, 2026
Use the pattern /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/ to test whether a string is a valid email address format. The tester highlights matches and shows immediately whether the full string passes the pattern.
The tool evaluates the regular expression against the test string using the JavaScript regex engine, highlights all matches and capture groups, and reports match count, positions, and group values.
The pattern and test text are sent to DevTool House servers to run the match and is not stored once the result is returned. Avoid testing against text that contains passwords or personal data.
This tester uses the JavaScript (ECMAScript) regex engine. Some patterns from Perl, Python, or PCRE flavors may use syntax not supported in JavaScript — such as variable-length lookbehind in older environments or named group syntax differences.