🏠 Home

Regex Validator

Test and validate your regular expressions

Regular expression
/ /
Text to test
Common regex library
Email - Validate an email address
Phone (FR) - French format (+33 or 0)
URL - Full HTTP/HTTPS URL
IPv4 - IPv4 address
Strong password - 8+ chars, upper, lower, digit, special
Hex color code - #RGB or #RRGGBB
French ZIP code - 5 digits
Credit card - 13 to 19 digits
Date ISO - YYYY-MM-DD
IBAN - International IBAN format
camelCase - Format camelCase
snake_case - Format snake_case
Regex Help
Special characters:
  • . - Any character
  • ^ - Start of line
  • $ - End of line
  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n,m} - Between n and m times
Character classes:
  • \d - Digit (0-9)
  • \w - Word (a-z, A-Z, 0-9, _)
  • \s - Whitespace
  • [abc] - a or b or c
  • [^abc] - Anything except a, b, c
  • [a-z] - From a to z
  • (x|y) - x or y