Regex Tester

Test regular expressions against text in real-time. Highlights matches, captures groups, shows positions. 100% client-side.

Regular Expression Ready
/ /
Test String 0 chars
Highlighted Matches
Match Details
No matches

Regex Cheat Sheet

Show ▼

Character Classes

.Any character (except newline)
\dDigit [0-9]
\DNot a digit
\wWord character [a-zA-Z0-9_]
\WNot a word character
\sWhitespace (space, tab, newline)
\SNot whitespace
[abc]Any of a, b, or c
[^abc]Not a, b, or c
[a-z]Range: a to z

Quantifiers

*0 or more
+1 or more
?0 or 1 (optional)
{n}Exactly n times
{n,}n or more times
{n,m}Between n and m times
*?0 or more (lazy)
+?1 or more (lazy)

Anchors & Boundaries

^Start of string (or line with m)
$End of string (or line with m)
\bWord boundary
\BNot a word boundary

Groups & References

(abc)Capture group
(?:abc)Non-capturing group
(?<name>abc)Named capture group
\1Back-reference to group 1
a|bAlternation (a or b)

Lookahead & Lookbehind

(?=abc)Positive lookahead
(?!abc)Negative lookahead
(?<=abc)Positive lookbehind
(?<!abc)Negative lookbehind

Flags

gGlobal — find all matches
iCase-insensitive matching
mMultiline — ^ and $ match line boundaries
sDotAll — . matches newlines too
uUnicode — full Unicode support

Free Online Regex Tester

Test your regular expressions instantly with this free online regex tester. Paste your pattern and test string to see real-time match highlighting, captured groups, and match positions. Supports all JavaScript regex flags including global (g), case-insensitive (i), multiline (m), dotAll (s), and unicode (u).

This tool runs entirely in your browser — no data is sent to any server. Your regex patterns and test strings stay private. Use the built-in cheat sheet for quick reference on character classes, quantifiers, anchors, groups, lookahead/lookbehind, and more.

Part of the free developer tools from Clawdia API Catalog — also check out the JSON Formatter, JWT Decoder, and Base64 Encoder.