What this tool does
It tests JavaScript-style regular expressions and shows matches, capture groups, flags, and replacement results.
Test JavaScript-style regular expressions against sample text, inspect matches and capture groups, and preview replacements directly in your browser. Your pattern and test text never leave the page or touch server memory.
Each match shows its text, character range, and any captured groups.
It tests JavaScript-style regular expressions and shows matches, capture groups, flags, and replacement results.
The pattern and test text stay inside your browser, so nothing is uploaded or stored in server memory.
$1 and $&.This follows the browser's JavaScript regex engine, so results match what you would usually get from RegExp in modern JavaScript.