🔎 Regex Tester
Test regular expressions with live highlighting.
How to Use the Regex Tester
Regular expressions (regex) are powerful patterns for matching text. This tester provides real-time highlighting of matches, making it easy to build and debug complex patterns.
Regex Basics
.- Any character\d- Digit (0-9)\w- Word character\s- Whitespace*- Zero or more+- One or more?- Zero or one[]- Character class()- Capture group
Using the Tester
- Enter your regex pattern in the Pattern field
- Add flags: g (global), i (case-insensitive), m (multiline)
- Paste test text in the Test String field
- Matches are highlighted in real-time
Common Patterns
- Email:
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b - Phone:
\d{3}-\d{3}-\d{4} - URL:
https?://[^\s]+