Developer Tools

Regex Tester

Test and debug regular expressions with live matches, groups, and index positions.

Hello World
Match 1 at 0Hello
Match 2 at 6World
Quick referenceEmail: [\\w.-]+@[\\w.-]+URL: https?:\\/\\/\\S+Phone: \\+?[0-9 -]{7,}Date: \\d{4}-\\d{2}-\\d{2}

About the regex tester

Write a regular expression, paste a test string, and see every match highlighted in real time. Includes a cheat sheet for character classes, anchors, and quantifiers - useful while you're learning regex or debugging an existing pattern.

Frequently asked questions

Which regex flavor is this?

JavaScript / ECMAScript. Most patterns work in Python and Java too, but lookbehind support and named groups can differ - test in your target language too.

What do the g, i, m flags do?

g matches every occurrence (not just the first); i is case-insensitive; m makes ^ and $ match per-line instead of per-string.