← All tools
Regex Tester
Test regular expressions against sample text with live matches.
//g
Overview
This tool runs a JavaScript-flavored regular expression against your sample text and highlights every match, so you can iterate on a pattern quickly.
How to Use
- Type or paste your regular expression.
- Paste sample text to test it against.
- Matches and capture groups are highlighted live.
- Adjust flags (g, i, m, etc.) as needed.
Common Use Cases
- Validating input formats like email or phone numbers
- Extracting structured data from log lines
- Debugging a regex that isn't matching as expected
FAQ
Which regex flavor does this use?
It uses standard JavaScript (ECMAScript) regular expression syntax, the same engine used in browsers and Node.js.