Free Regex Tester
Enter a regex pattern and test string to see all matches highlighted in real time. Supports flags: global, case-insensitive, multiline.
/ /
Matches
Regex Quick Reference
Character Classes
| . | Any character (except newline) |
| \d | Digit [0-9] |
| \D | Non-digit |
| \w | Word char [a-zA-Z0-9_] |
| \W | Non-word char |
| \s | Whitespace |
| [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 |
| \b | Word boundary |
| (abc) | Capture group |
| (?:abc) | Non-capturing group |
| a|b | a 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.