Validation
Letters only
^[a-zA-Z]+$Required Field (not empty)
E-mail address
^([\w-\.]+@([\w-]+\.)+[\w-]{2,63})?$Phone number
Numeric
Float
Website URL
IBAN
Custom Regex
match password that is at least 8 characters long, contains a lower case and upper case letter, contains at least one number and at least a special character/symbol.
match username
match any ip address
match credit card numbers
match email address
match email address except specific domains
select integers only
match number in range 0-255
match number in range 0-999
match ints and floats/decimals
Match Any number from 1 to 50 inclusive
match elements that could contain a phone number
MatchDate (e.g. 21/3/2006)
match date in format MM/DD/YYYY
match date in format DD/MM/YYYY
match a url string (Fixes spaces and querystrings)
match domain name (with HTTP)
match domain name (www. only)
match domain name (alternative)
match sub domains: www, dev, int, stage, int.travel, stage.travel
Match jpg, gif or png image
match all images
match just .png images
match RGB (color) string
match hex (color) string
Match Valid hexadecimal colour code
match a HTML tag (v1)
match HTML Tags (v2)
match /product/123456789
Match Letters, numbers and hyphens
Last updated