FormatForge

Regex Tester

Test and debug regular expressions with real-time matching. See matches highlighted instantly as you type.

//
Flags:
Test String

Regex Cheat Sheet

Character Classes

. - Any character
\d - Digit [0-9]
\w - Word char [a-zA-Z0-9_]
\s - Whitespace

Quantifiers

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

Anchors

^ - Start of string
$ - End of string
\b - Word boundary

Groups

(abc) - Capture group
(?:abc) - Non-capture
a|b - Alternation