Regex Tester

Live regular expression tester with match highlighting, capture groups, replace mode, and flag toggles.

/ /
Quick examples:
Email URL IPv4 Hash Groups Empty lines
Highlighted matches
Match details
Replace
Regex quick reference

Character classes

. Any char (except newline)   \d Digit   \w Word char   \s Whitespace

[abc] a, b, or c   [^abc] Not a, b, or c   [a-z] Range

Anchors

^ Start of string/line   $ End   \b Word boundary

Quantifiers

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

Groups

(abc) Capture group   (?:abc) Non-capturing   (?<name>abc) Named

Lookaround

(?=abc) Lookahead   (?!abc) Negative   (?<=abc) Lookbehind