GetEmailAddr ( Text )
Extracts email addresses from text
Average rating: 4.7 (22 votes) Log in to vote
Denham Morgan NeuroScience Associates http://http://www.neuroscienceassociates.com/ |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Adapted from Daniele Raybaudi's GetEmail function.
It extracts all email addresses from text.
Added a substitution filter for common characters found surrounding email addresses. Recursive function.
Thanks, Daniele Raybaudi for GetEmail!
12/17/2013 Added some more characters to filter out and fixed GetEmailAddr ( nextText )
10/22/2014 Corrected for blank line if no email addresses.
Comments
Bruce Robertson Dec 17, 2013 |
||
Small correction, toward the end GetEmail ( nextText ) should be GetEmailAddr ( nextText ) | ||
Till Seelemann, Leipzig, Germany Oct 16, 2014 |
||
If you have only one address in the text, a blank line appears at the end of the result. Solution: Case (  count > 1; word & "¶" & GetEmailAddr (next text);  count = 1; word;  "" ) |
||
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.