Test JavaScript regular expressions against sample text. Highlight matches, inspect capture groups, choose flags, and preview replacements directly in your browser.
$&, $1, and $$.| # | Index | Match | Capture groups |
|---|
This online regex tester checks JavaScript regular expressions against your text. Review highlighted matches, match positions, capture groups, and a replacement preview without installing software.
$1 and $&.\b(\w+)@(\w+\.\w+)\b.g for all matches or i to ignore letter case.Pattern: \b([\w.-]+)@([\w.-]+\.[A-Za-z]{2,})\b with the g flag.
Test text: Contact ada@example.com for details.
The tester highlights the address and shows ada and example.com as capture groups. A replacement such as $1 [at] $2 previews ada [at] example.com.
Your pattern and test text are processed locally in your browser. This regex tester does not upload or store your input.