Hi,
I need to check if the syntax of a tyed Internet domain is correct.
I was thinking to use something similar to:
$check_domain = ereg("[a-zA-Z0-9][-][a-zA-Z0-9]{3,63})$", $domain);
but I don't know how to use the brackets and the elements inside.
Where can I find informations about ?
I need only to check that the name have only letters or numbers or one "-" in any position.
Thank you
Fabio