FMPRO-L Archives

October 2012, Week 1

FMPRO-L@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Geoff Graham <[log in to unmask]>
Reply To:
FileMaker Pro Discussions <[log in to unmask]>
Date:
Fri, 5 Oct 2012 19:16:23 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
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/

ATOM RSS1 RSS2