This is a piece of a big regex (php) :
((?:[0-9A-z_-]+))
I use it to valid a subdomain, but I would like to accept every subdomains except "www"
How can I do that when there's an alphanumeric "selector" ?
EDIT : Finally used (\b(?!www\b)(?:[0-9A-Za-z_-]+))
, thanks to Tim and ATS