Regex tester

This runs in your browser. Nothing is uploaded.

Matches: 2

Write to [email protected] or [email protected].
Match 1
$1: ada $2: example.com
Match 2
$1: linus $2: example.org

What it does

Marks everything a regular expression matches while you type, and lists the groups. It uses your browser's JavaScript engine.

Questions

Will it work the same in Python or PHP?
Mostly. Named groups, lookbehind and some flags are written differently, so test in the language you'll use.
Why does the page freeze with some patterns?
Patterns like (a+)+ can take an enormous number of attempts on text that almost matches. They'd do the same to your program.

Related tools

See the full list: Developer tools