How to test a regex
- Type your pattern and choose flags such as g or i.
- Paste the text to test; matches are highlighted live.
- Add a replacement to preview the result.
Uses the JavaScript (ECMAScript) regex engine, including lookbehind and named groups.