Skip 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 Email id's with matching domain from list of values

Featured Replies

Try it this way =

Let ( [
suffix = "gmail.com" ;
list = Substitute ( YourField; ", " ; ¶ ) ;
a = Char (57344) ;
b = Char (57345) & ¶
] ;
FilterValues ( list ; Substitute ( list & ¶ ; [ suffix & ¶ ; a ] ; [ ¶ ; b ] ; [ a ; suffix & ¶ ] ) )
)

The result will be a return-separated list of the matching addresses:

[email protected]
[email protected]
[email protected]

I have never seen using Char ( 57344 ) and Char ( 57345 ) before!  So the idea is to use two characters which can not exist in the data as unique beginning and end points and surround the non-gmail.emails with these symbols.  Then replace the beginning (a) with gmail which leaves result below. I used (b) here since forum didn't like the symbol of Char (57345):

[email protected]
[email protected](b)
[email protected]
[email protected](b)
[email protected]

Then those with the (b) at the end would naturally be removed in the FilterValues() since they would no longer exist in the list.  Did I misinterpret anything or miss an important aspect in this principle?

This is so very clever!!  I wish I could rate you UP more than once on it!  What a great way to start my day!  Thank you SO MUCH for sharing your brain with this forum, Michael!!

 

Edited by LaRetta

So the idea is to use two characters which can not exist in the data as unique beginning and end points and surround the non-gmail.emails with these symbols. 

I would say that the idea is to append something to the values that do not end with the specified suffix. This is done in three steps:

  1. Protect the values that do end with the specified suffix from being modified in step 2 by substituting the suffix and the subsequent return with a reserved character (a);
  2. Substitute all remaining returns with a reserved character (b) and a return; this effectively appends (b) to all values that do not end with the specified suffix;
  3. Reverse step 1 .

The result of this is indeed what you show in your post:

[email protected]
[email protected](b)
[email protected]
[email protected](b)
[email protected]

and when this is used to filter the original list, only the unmodified, wanted values remain.

 

This is so very clever!! 

IIRC, I developed this idea out of something that Agnès Barouh did, I don't recall exactly what that was.

Edited by comment

@ Comment-Comment, please don't ever use your brain for evil :)   

@LaRetta & Comment-thanks for taking the time to explain.  I could've stared at that for the rest of my life and not understood.  Of course I could have just put it in the Data View and broken it down....

Very nice, gives me an idea.....:clap:

Of course I could have just put it in the Data View and broken it down....

That's always a good idea.

  • Author

Thanks for sharing idea.... 

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.