How to use
- Enter your regex pattern and choose flags like g, i, or m.
- Paste test text and click Run to inspect match positions and values.
- Set replacement text to preview transformed output before applying elsewhere.
Run pattern matching and replacement preview locally in your browser.
Why are no matches returned?
Check escaping, flags, and whether your pattern expects full-string vs partial matches.
Does this tool support capture groups in replacement?
Yes. You can use replacement tokens like $1, $2, etc., just like standard JavaScript replace.