Regex Tester
Test and debug regular expressions online. Free regex tester with match highlighting, groups, and explanation.
Matches
Capture Groups
About Regex Tester
A regular expression (regex) is a sequence of characters that defines a search pattern. This tool helps you test and debug your regular expressions with real-time feedback and match highlighting.
Features
- Test regex patterns against sample text
- Support for global, case-insensitive, and multiline flags
- Highlight all matches in the test string
- Display capture groups and their values
- Real-time pattern validation
Common Regex Patterns
- Email:
^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$ - URL:
https?://[\w\-]+(\.[\w\-]+)+[/#?]?.*$ - Phone:
^\+?[\d\s\-()]+$ - Hex Color:
^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$
Related Tools
JSON Formatter & Validator
Free online JSON formatter and validator. Format, beautify, and validate JSON data with syntax highlighting and error detection.
URL Encoder / Decoder
Encode and decode URLs and URI components. Free online URL encoder and decoder with support for query strings and special characters.