Hey Guys,
What i'm trying to do is trim a list of urls that get imported to the format: site.com (with no protocol or trailing slash after the extension)
There is up to 6 potential variations that can get imported:
I tried using split with the "." but one of the 6 examples only uses 1 "." is there an easier way to do this i'm over looking? it seems to get messy when doing splits/replaces for each scenario.
cheers for any help guys :)
Graham
What i'm trying to do is trim a list of urls that get imported to the format: site.com (with no protocol or trailing slash after the extension)
There is up to 6 potential variations that can get imported:
Code:
site.com/
www.site.com
www.site.com/
http://www.site.com/
http://site.com
http://site.com/
cheers for any help guys :)
Graham