Pattern
gm
Flags g global · i case-insensitive · m multiline
Pattern Explanation

Type a pattern above to see token-by-token breakdown.

Test Text
Matches0
Unique0
First
Ready

No matches yet.

Result

                        
FAQ
Why no matches even when pattern looks right?

Check flags and anchors. For line-by-line matching add the m flag — without it ^ and $ match only the entire string boundary, not each line.

How do I use captured groups in Substitution?

Use $1, $2 for numbered groups. Use $& to insert the full match. Named groups (?<name>...) are referenced as $<name>.

What regex engine does this use?

The browser's built-in JavaScript RegExp engine — identical to Node.js and Chrome DevTools. Results match your production code exactly.

Is my data sent anywhere?

No. Everything runs entirely in your browser. No data leaves your device.