milotic

Regex tester

Build a JavaScript regular expression, see every match with its capture groups, and preview replaceAll against your sample text. Everything runs in your browser — your pattern and sample never leave the page.

Pattern
JavaScript RegExp syntax. Toggle flags below; the resolved literal is shown for copy.
Flags

Resolved as //g.

Sample text
The text you'd test the pattern against. Multi-line is fine.
Replace preview
Preview String#replaceAll with $1, $2, $<name> back-references against your sample.