Soldato
I'm looking to extract the domain extension from a table full of website addresses, can anyone give me some pointers.
Here are some possible permutations and the part I want to extract:
These should all return .co.uk
These should all return.com
These should be .com.au
Any pointers guys?
Here are some possible permutations and the part I want to extract:
These should all return .co.uk
- domainname.co.uk
- www.domainname.co.uk
- http://domainname.co.uk
- http://www.domainname.co.uk
These should all return.com
- domainname.com
- subdomain.domainname.com
- www.domainname.com
- domainname.uk.com
These should be .com.au
- domainname.com.au
- www.domainname.com.au
- http://www.domainname.com.au
Any pointers guys?