Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hello eveyone,

I am trying to trim out the field that contains full urls into only domains.

Eg.

http://subdomain.domain.com/contact.html

http://images.yahoo.com/userx/folder/image.jpg

http://www.google.com/search?q=filemaker&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1

into:

http://subdomain.domain.com

http://images.yahoo.com

http://www.google.com

so I found this works:

Trim ( Substitute ( MiddleValues ( Substitute ( DestinationURL; ".com"; "¶"); DestinationURL; 1); "¶"; "" ) )&".com"

------------------------- ------------

but how to implement some form of variable to cover all domain extensions?(tv,org,edu,com,...)

my poor logic would be:

-------------------------------------

DomainVAR = .net .com .tv ....(all possible)

Trim ( Substitute ( MiddleValues ( Substitute ( DestinationURL; "DomainVAR"; "¶"); DestinationURL; 1); "¶"; "" ) )&"DomainVAR"

-------------------------------------

Or does this have to be scripted?

Thanks for your time!

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

  • Author

Thanks sbg2,

I compleatly overlooked the pattern of "/" is always accounted 3 times.

Thanks a bunch!

what happens if there is no third slash?

http://www.fmforums.com

Do all fields have to be a longer url? Just curious here.

How about:

Let (

text = MyURL & "/"

;

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

)

  • Author

Thanks Zero Tolerence for pointing this out.

Comment, thanks for the final touch!

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.