Inspect every match
Global expressions return every match with its character index and captured groups, making patterns easier to debug against representative input.
Core transformations run locally in your browser.
Test JavaScript regular expressions, inspect matches and capture groups, and preview replacement output.
Uses JavaScript regular-expression syntax and flags.
| Match | Index | Capture groups |
|---|---|---|
| [email protected] | 8 | ada · example.com |
| [email protected] | 27 | grace · example.org |
Replacement result
Global expressions return every match with its character index and captured groups, making patterns easier to debug against representative input.
Try replacement references such as $1 without modifying a real file or sending text to a remote service.