I searched the forum for posts about validating domain names and found a suggestion of:
PHP Code:
Would that permit suffixes like .co.uk, .org.uk, etc? It looks like it might only allow .com, .net, etc.

I need to allow domain names with two-part suffixes, since most of my site's visitors will likely be using them, and also allow them to include the www. prefix but not http:// . What do I need to change in the above example?