Hi,
I'm scripting a domain availability search tool. And I just wanted to know how to detect if user is typing unacceptable domain characters such as *"#@ etc..
I'm not exactly sure which function or how to use the function to detect bad characters.
The only legal characters in a domain are 0-9, a-z and "-".
How would I write this in an if statement.
Where if all characters are legal then continue with search. else print "Only legal characters in a domain are 0-9, a-z and - ."; to the user.