Regex Tester
Test a regular expression against sample text — see every match, position, and capture group.
About this tool
Live tester for JavaScript-flavored regular expressions. Enter a pattern, optional flags (g, i, m, s, u, y), and a body of test text — get back every match with its index and capture groups. Use the example chips below the form to load common patterns (email, IPv4, URL, UUID, hex color, ISO date) as starting points.
FAQ
- What flavour of regex is this?
- JavaScript / ECMAScript. Lookbehind, named groups (?<name>…), Unicode property escapes (\p{…}) all work. PCRE-only features like atomic groups and conditionals are not supported.
- Why does my pattern with `g` only return one match?
- Drop the `g` flag if you want exec-style single match, or keep it on to scan all matches. With `g` on we cap at 500 matches to keep the output readable.
- Can you generate a regex for me from examples?
- Not yet — pattern inference is on the roadmap. For now, use the example chips below as starting points and iterate.