Tester

Regex Tester

Test and debug regular expressions with live matches.

Presets:
Flags:
ß
Matches
Enter a pattern and test string to see matches or replacement result.
Quick reference

Character classes

. any · \d digit · \w word · \s space · [abc] set · [^abc] negated

Quantifiers

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

Anchors

^ start · $ end · \b word boundary · \B non-boundary

Groups

(x) capture · (?:x) non-capture · \1 backref · (?=x) lookahead · (?!x) neg lookahead