I'm abit of an amateur when it comes to regex but consider i have the following three domains
www.google.com
www.google.co.uk
google.com
I would like to create some regex that will test to see if the domain has a www and also a .co.uk or .com
Does anybody know of some regex that will test for this?