Nov 19, 2019 06:41 AM
I’m trying to extract emails (name@gmail.com)from a notes field.
The format is uniform “name@gmail.com”
But I can’t figure out a fomula to extract them
There is a “space” before the name and "space after the “.com”
Nov 22, 2019 08:05 PM
Opps Sorry for this but it seems not to be pulling in the “gmail.com” of the email addresses… Am i missing something?
Nov 22, 2019 08:06 PM
Or is it just easier to add that part in a different field?
Nov 23, 2019 05:16 AM
This is one of the Notes texts I tested with:
vdjh bill.french@gmail.com hjfv jhd vjh
This is the outcome from analyzing that row:
bill.french@gmail.com
It appears that it is performing the correct entity extraction at least in terms of this collection of tests.
Nov 25, 2019 05:39 AM
Here’s another way to tackle it:
TRIM(MID(SUBSTITUTE({Test string}, " ", REPT(" ", 30)), FIND("@", SUBSTITUTE({Test string}, " ", REPT(" ", 30))) - 30, 60))
Nov 25, 2019 05:51 AM
That looks far simpler. What is the purpose of the 30 and 60 values in the formula?
Nov 25, 2019 05:56 AM
I’m replacing each space with 30 spaces, grabbing a chunk of the resulting larger string that begins 30 characters before the @—which is guaranteed to be somewhere the mega-space block just before the email address—and is 60 characters long—which is mostly guaranteed to be in the mega-space block after the address—then trimming the extra spaces off the ends.