I'm writing a RegEx for domain name validation that shouldn't allow http:// or www at the start (i.e. msft.com, google.com,amazon.com, etc.). I've found plenty of posts on this site and the closest came with this solution:
^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,6}$
This won't allow http:// but it will allow me to enter www.google.com. How can I adjust this?
Thanks for any helpful tips.