This is the calc I come up with:
Left ( url; If ( PatternCount ( url; "/" ) < 3; Length ( url ); Position ( url; "/"; 1; 3) - 1 ))
In FM6, this would be a calculated field, rather than a function. Or of course, you could set a global via script.
Geoff
> -----Original Message-----
> From: FileMaker Pro Discussions [mailto:FMPRO-
> [log in to unmask]] On Behalf Of W. D.
> Sent: Thursday, October 04, 2012 7:27 PM
> To: [log in to unmask]
> Subject: Extract Domain Name from URL?
>
> Looking to parse out the domain name from a URL:
>
> http://lists.ironclad.net.au
>
> or
>
> https://LISTSERV.DARTMOUTH.EDU/
>
> Does anyone know of a function that would work for
> FileMaker 6, or do I need to create one?
>
> Start Here to Find It Fast!(tm) -> http://www.US-Webmasters.com/best-start-
> page/
> $8.77 Domain Names -> http://domains.us-webmasters.com/