Regex Tester
Test regular expressions with live highlights, capture groups and presets.
Regex tester with live highlighting and capture groups
Test JavaScript regular expressions with live highlights, colored capture groups, and a full match table. Includes presets for the patterns you actually need (email, URL, UUID, IPv4, hex color, E.164 phone) so you don't have to hunt them down again.
What's highlighted
Each full match gets a purple background. Capture groups inside that match get cycling colors (cyan, green, amber, red) so you can see at a glance what each parenthesized group caught. The match table below shows position, full match, and group values.
Flags supported
-
g— global, find all matches (auto-added by the tool). i— case-insensitive.-
m— multiline,^/$match line start/end. s— dotall,.matches newlines.u— Unicode mode.y— sticky.
Notes on JavaScript regex
JS regex is mostly PCRE-compatible but has quirks: no possessive
quantifiers, lookbehind support varies by browser age, and named
groups use (?<name>...). The tester runs in your
actual browser so the behavior here matches your runtime exactly.