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.

Extract account name in front of the "@" sign in an e-mail addy

Featured Replies

What I want to do is have a calc field look at a text field and extract the account name that's left of the "@" sign in its e-mail address. Since the right side of the "@" sign is the same server address 99.9% of the time, at first I thought of using the Filter command just to filter the "@lcsc.edu" part of the address but sure enough, that .1% will appear so that command won't work. I also thought of using LeftWords ( Email Address ; 1 ), but that falls flat with hyphenated names.

I found this link (http://help.filemaker.com/app/answers/detail/a_id/6481/~/example-of-how-to-extract-data-following-a-special-character-in-a-field)  that comes close, but it's through a script and the "wrong" side of the address. I'd rather use a calculation, but if I'm forced to use the script then how do I extract what's left of the "@" and not what's right of it?

TIA for your help!

Rich

Edited by WF7A

extract the account name that's left of the "@" sign in its e-mail address.

Isn't it obvious?

Left ( EmailAddress ; Position ( EmailAddress ; "@" ; 1 ; 1 ) - 1 )

 

Or, if you prefer:

GetValue ( Substitute ( EmailAddress ; "@" ; ¶ ) ; 1 )

 

 

Edited by comment

  • Author

If it were obvious... Nah, forget it--I still don't see things that are obvious to others but not to me. :S

So, educate me, please: what does the "-1" do at the right side of the equation? I've seen it in other equations--does it equate to "before"?

Edited by WF7A

No - the Position bit is to find where the @ symbol is, and you want one less character than that so that the @ symbol isn't included in the final result..

Edited by webko

  • Author

Ah! Thanks!

So, educate me, please: what does the "-1" do at the right side of the equation?

The way to learn what it does is to remove it (or change it to +1 or -2, etc.) and see what has changed. That and reading the help on Left() and Position() , of course.

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.