Match domain and subdomain
Posted: Fri Feb 19, 2010 9:20 am
I have this regex: '#^([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)$#'
that matches subdomains, but I also want to match domains.
I will appreciate any tip.
that matches subdomains, but I also want to match domains.
I will appreciate any tip.