Header background pattern

ToolNook.dev

A collection of handy micro-tools for everyday tasks

← Back to All Tools

Regular Expression Tester

Test and debug your regular expressions with real-time highlighting and detailed results.

Match Results

Matches will be highlighted here

0 matches found

Regex Cheatsheet

Character Classes

.Any character except newline
\wWord character [a-zA-Z0-9_]
\dDigit [0-9]
\sWhitespace
\WNot word character
\DNot digit
\SNot whitespace
[abc]Any of a, b, or c
[^abc]Not a, b, or c
[a-z]Character between a & z

Anchors & Boundaries

^Start of string/line
$End of string/line
\bWord boundary
\BNot word boundary

Quantifiers

*0 or more
+1 or more
?0 or 1
{3}Exactly 3
{3,}3 or more
{1,3}Between 1 and 3

Groups & Alternation

(abc)Capture group
(?:abc)Non-capturing group
|Alternation (or)

Common Examples

Email URL Phone Number Password IP Address