I need a regular expression which will check the domain name including characters like a-z A-Z 0-9 -
Also does any domain name having underscore _ character?
Please help me.
I need a regular expression which will check the domain name including characters like a-z A-Z 0-9 -
Also does any domain name having underscore _ character?
Please help me.
I guess this is what youre searching for:
^[a-zA-Z0-9]+([a-zA-Z0-9-.]+)?.(com|org|net|mil|edu|de|COM|ORG|NET|MIL|EDU|DE)$