Regular Expressions

Common regexes

purpose/match/validates Regex
FQDN1,2 (?=^.{1,254}$)(^(?:(?!\d|-)[a-zA-Z0-9\-]{1,63}(?<!-)\.?)+(?:[a-zA-Z]{2,})$)

online tools


[1] fully qualified domain name