Use it whenever you're crafting a regex for log parsing, form validation, find-and-replace operations, or rewriting URL paths. The instant highlighting catches greedy/lazy mistakes immediately. Alternative: regex101.com is the dominant tool with extensive flavor support; this one is faster for the JavaScript flavor and runs offline once the page loads.
A common email validator and its captures:
Pattern: ^([\w.+-]+)@([\w-]+\.[\w.-]+)$
Flag: i
Input: [email protected]
Match: [email protected]
$1: alice
$2: example.comLast updated: 2026-04-27