Free Regular Expression Tester

Test and debug regular expressions in real-time. Perfect for developers, data analysts, and anyone working with text pattern matching.

Regular Expression

Test Text

Common Regular Expressions

Email Address
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Validates email format
Phone Number
\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}
US phone number format
URL
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
HTTP/HTTPS URLs
IP Address
\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b
IPv4 address format
Credit Card
\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b
16-digit credit card
Date
\b\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}\b
MM/DD/YYYY format
Strong Password
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$
8+ chars, upper, lower, digit, special
Hex Color
#[0-9a-fA-F]{6}
6-digit hex color code

Match Statistics

0
Total Matches
0
Full Matches
0
Group Matches
Regex Valid

Match Results

Enter a regular expression and test text to see matches here.

🔍 Regular Expression Guide

  • ^ - Start of string
  • $ - End of string
  • . - Any character (except newline)
  • * - Zero or more of preceding character
  • + - One or more of preceding character
  • ? - Zero or one of preceding character
  • [] - Character class (any character inside)
  • [^] - Negated character class
  • | - OR operator
  • () - Grouping and capturing
  • \d - Digit (0-9)
  • \w - Word character (a-z, A-Z, 0-9, _)
  • \s - Whitespace character

This tool supports JavaScript regular expressions with all standard flags and features.