Match summary
Pattern
/…/
Total matches
0
First index
No match
Try JavaScript regular expressions, toggle flags, review capture groups, and highlight every match in your sample text without leaving the browser.
/…/
0
No match
| Match | Value | Groups |
|---|
This tester uses the JavaScript RegExp engine available in your browser. It builds a pattern from the input field and selected flags, evaluates the sample text, and reports each match plus any captured groups.
If the pattern is invalid, the page catches the runtime error and shows it inline instead of failing silently. Highlighting uses escaped text so the preview remains readable even when the sample contains HTML-like characters.
Tip: the g flag is useful when you want all matches, while m and s change how anchors and dots behave across multiple lines.