Developer Tools

Regex Tester

Build and debug regular expressions against your own test text and watch the matches highlight as you type. This Regex Tester uses the JavaScript (ECMAScript) regex engine, shows each match with its index and capture groups, and lets you preview a find-and-replace. Everything runs locally in your browser.

Hello World Foo123 Bar

How do you test a regular expression?

To test a regex, enter the pattern and some sample text, and every match is highlighted as you type, with capture groups listed separately. Testing against real sample data catches the common failures - greedy quantifiers, unescaped dots, and anchors - before the pattern reaches production.

Runs in your browser. Your files and text never leave your device - nothing is uploaded.