πŸ”Ž Utilities

Regex Tester & Explainer

Test regular expressions with live match highlighting and capture group display. Get a plain-English breakdown of what each part of your pattern does β€” great for learning and debugging.

πŸ” Pattern
/ / gi
Flags:
Quick patterns:
Email URL IPv4 Date Name Hex color
πŸ“ Test String
πŸ“‹ Regex Quick Reference
Characters
\d Digit (0–9)
\w Word char (a-z, A-Z, 0-9, _)
\s Whitespace
. Any char except newline
[abc] Character class
[^abc] Negated class
Quantifiers
* 0 or more
+ 1 or more
? 0 or 1 (optional)
{n,m} Between n and m
*? Lazy (minimal match)
Anchors
^ Start of string/line
$ End of string/line
\b Word boundary
Groups
(abc) Capture group
(?:abc) Non-capture group
(?<name>) Named group
a|b Alternation (a or b)
πŸ“– How to Use This Tool
β–Ό
1
Enter a pattern in the regex field
2
Paste test text β€” matches highlight live
3
View capture groups and values
4
Use the cheatsheet for syntax help
πŸ“ Examples
Emails
Input: [a-z]+@[a-z]+\.[a-z]+
Output: Highlights all emails in text