Regular Expressions 101

Library entries

retrieve hostname without subdomain

Vote

-3

Regular Expression
pcre

/
\.[[:alnum:]]*\.?[[:alnum:]]*\.?[[:alnum:]]*\.?[[:alnum:]]*\.?[[:alnum:]]*
/

Description

Loading markdown...
Submitted by Diego Zuluaga - 6 years ago