Regex Tester

Test regular expressions with match highlighting and capture group display. Uses JavaScript's RegExp engine.

Matches

Regex quick reference

\d digit, \w word char, \s whitespace, . any char, ^ start, $ end

* 0+, + 1+, ? 0 or 1, {n,m} n to m times

(group) capture group, (?:group) non-capturing, (?<name>group) named group

Common flags: g global, i case-insensitive, m multiline, s dotAll