Regex Tester
Test regular expressions against sample text.
Processed on your device. Your files never leave your browser.
//g
About Regex Tester
The regex tester lets you build and debug JavaScript regular expressions with live match highlighting. Toggle flags, see every match with its capture groups, and spot exactly what your pattern matches in your sample text.
How to use
- 1Type your regular expression in the pattern field.
- 2Toggle flags like global, ignore case or multiline.
- 3Paste your test string below.
- 4See matches highlighted live, with a list of matches and capture groups.
Features
- Live match highlighting as you type.
- All JavaScript flags: g, i, m, s, u, y.
- Match list with indexes and capture groups.
- Clear, specific error messages for invalid patterns.
Frequently asked questions
Related tools
Live
JSON Formatter & Validator
Format, validate and minify JSON with clear error messages.
Developer & DataLive
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text.
Developer & DataLive
JWT Decoder
Decode and inspect JWT tokens.
Developer & DataLive
UUID Generator
Generate random UUID v4 identifiers in bulk.
Developer & Data