RegEx Validator Tool
🧩 RegEx Validator Tool
Test regex patterns, replacements, and view cheatsheets.
📝 Pattern Input
/
/
Flags:
↳
🔍 Match Result
0 Matches
0ms
Captured Groups
- No groups captured.
📚 Cheatsheet
Click to insert.
Character Classes
-
.Any character except newline -
\wWord character (a-z, A-Z, 0-9, _) -
\dDigit (0-9) -
\sWhitespace (space, tab, newline) -
[abc]Any of a, b, or c -
[^abc]Not a, b, or c
Quantifiers
-
*0 or more -
+1 or more -
?0 or 1 -
{3}Exactly 3 -
{3,}3 or more -
{3,5}3 to 5
Anchors
-
^Start of string/line -
$End of string/line -
\bWord boundary
Groups
-
(...)Capture group -
(?:...)Non-capturing group -
$1Reference group #1 (in replace)