FMPRO-L Archives

October 2012, Week 1

FMPRO-L@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Content-Type:
text/plain; charset="us-ascii"
Date:
Fri, 5 Oct 2012 19:16:23 +0000
Reply-To:
FileMaker Pro Discussions <[log in to unmask]>
Message-ID:
Subject:
From:
Geoff Graham <[log in to unmask]>
MIME-Version:
1.0
In-Reply-To:
Content-Transfer-Encoding:
quoted-printable
Sender:
FileMaker Pro Discussions <[log in to unmask]>
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