Free Regex Tester

Enter a regex pattern and test string to see all matches highlighted in real time. Supports flags: global, case-insensitive, multiline.

/ /

Regex Quick Reference

Character Classes

.Any character (except newline)
\dDigit [0-9]
\DNon-digit
\wWord char [a-zA-Z0-9_]
\WNon-word char
\sWhitespace
[abc]Any of a, b, or c
[^abc]Not a, b, or c

Quantifiers

*0 or more
+1 or more
?0 or 1 (optional)
{n}Exactly n times
{n,m}Between n and m times
*?Lazy (match as few as possible)

Anchors & Groups

^Start of string/line
$End of string/line
\bWord boundary
(abc)Capture group
(?:abc)Non-capturing group
a|ba or b

Try These Common Patterns

Validate Scanned Barcode Data with Regex

The Scan & Generate app gives you raw access to scanned barcode content — perfect for validating formats like ISBN, EAN, or custom codes.