Regex Tester
Write a regular expression and see every match highlighted in your test text, with capture groups.
Loading tool…
Advertisement
How to use
- Type a regular expression and toggle the flags you need (g, i, m, s, u, y).
- Paste text into the test string box.
- See matches highlighted live, with a table of capture groups and positions.
Related tools
JSON Formatter / ValidatorFormat, minify, and validate JSON with precise error locations.
JSON DiffCompare two JSON documents and see exactly what changed — keys, values, structure.
Text CompareCompare two texts and see exactly what changed — by word, line, or character.
Base64 Encode / DecodeEncode and decode Base64 with correct UTF-8 handling.
Frequently asked questions
Which regex flavor is this?
JavaScript (ECMAScript) regular expressions, using your browser's built-in RegExp engine.
What do the flags mean?
g = global (all matches), i = ignore case, m = multiline, s = dotall (dot matches newlines), u = unicode, y = sticky.
Is my text sent anywhere?
No. The pattern runs against your text entirely in the browser — nothing is uploaded.
About this tool
Regex Tester is a free, browser-based tool from Tools Platform. It runs entirely on your device — your data is never uploaded to a server, so it stays completely private. There are no accounts, no watermarks, and no limits. Write a regular expression and see every match highlighted in your test text, with capture groups.