I tried this regex syntax in http://gskinner.com/RegExr/ and seem working well.
^[a-z0-9-]+.([a-z]{2,4})$
the purpose is to match domain name(not containing http or https)
so i use preg_match( '/^[a-z0-9-]+.([a-z]{2,4})$/g', 'fathi-hadi.net' )
but always return false
i don't know why
.=>\., the dot matches any character.