Loading tool…
Loading tool…
Loading tool…
Test regular expressions against sample text in real time with match index and capture group breakdowns.
Your inputs stay in your browser. Make something useful.
Loading tool…
Here’s how to get the most out of regex tester.
Our Regex Tester evaluates expressions using your browser’s JavaScript RegExp engine with an iteration guard to prevent infinite zero-length match loops. Note that PCRE (PHP) and Python regex engines support certain lookbehind or flag constructs that differ slightly from ECMAScript.
A few things you might want to know before you start.
It uses the standard ECMAScript (JavaScript) RegExp engine built into your browser.
The global (g) flag finds all matches in the test string rather than stopping after the first match.
No. Pattern matching runs locally in your browser.
Enter only the pattern body without surrounding forward slashes (/.../), and put flags in the Flags input.