Regular Expressions 101

Community Patterns

Community Library Entry

-3

Regular Expression
PCRE (PHP <7.3)

/
^(([a-z0-9][a-z0-9\-]*[a-z0-9])|[a-z0-9]+\.)*([a-z]+|xn\-\-[a-z0-9]+)\.?$
/

Description

no description available

Submitted by Rafael Justo and Mauro Trajber - 9 years ago