Regex Tester

Test regular expressions against any text in real time. Highlights all matches with color coding, displays match groups and captured values, and supports all JavaScript regex flags (g, i, m, s). Essential for developers writing pattern matching and validation code.

//

Frequently Asked Questions

Which regex flavour does this tester use?
JavaScript regular expressions (ECMAScript spec). This is compatible with JavaScript, TypeScript, and closely matches the regex syntax in Python, Java, and most modern languages.
Which regex flags are supported?
global (g) — find all matches; case-insensitive (i); multiline (m) — ^ and $ match line boundaries; dotAll (s) — dot matches newlines.
Are capture groups shown?
Yes. All capturing groups (group 1, group 2, etc.) and named groups are displayed alongside each match.