Jump to content
Sign in to follow this  
Greg O'Connor

Extracting URL's

Recommended Posts

Hi all.

Is there a calculation which is will extract from a URL such as:

http://www.mydomain.com/folder1/folder2/page.html

the domain only? The result should be like this:

http://www.mydomain.com/

I have been searching and trying out some calculations, but unsuccessful.

Any help would be great.

Greetings

Greg

Share this post


Link to post
Share on other sites

This came up barely a week ago:

http://www.fmforums.com/forum/showtopic.php?tid/188417/

Share this post


Link to post
Share on other sites

Thanks a lot:

Let (

text = MyURL & "/"

;

Left ( text ; Position ( text ; "/" ; 1 ; 3 ) - 1 )

)

This works fine for me and does the job!

Greetings

Greg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.