Regular Expressions 101

Community Patterns

Catch Hostname

0

Regular Expression
PCRE (PHP <7.3)

/
(?i)^.*\.(.*\.[a-z]{0,3})|(?i)([a-z]{0,3}\..*\.[a-z]{0,3}|.*\.[a-z]{0,3})$$
/
gm

Description

no description available

Submitted by anonymous - 3 years ago