Free Tool
Regex Tester
Test regular expressions against a string with live match highlighting. View match positions, groups, and copy all matches.
Regular Expression Tester
//g
Flags:
Regular expression flags
g (global) finds all matches. i makes matching case-insensitive. m makes ^ and $ match line boundaries. s (dotall) makes . match newlines.
How to use
- Enter a regular expression pattern (without the surrounding slashes).
- Toggle flags as needed.
- Paste your test string.
- Matches are highlighted in real time. Copy all matches with the Copy button.
All matching runs in your browser — nothing is sent to any server.
Frequently Asked Questions
- What regex flavour is used?
- JavaScript's built-in RegExp engine (ECMAScript regex).
- Can I test multi-line patterns?
- Yes. Enable the m flag to make ^ and $ match at line boundaries, and s to make . match newlines.