An alternative approach, see the attachment
An alternative approach, see the attachment
Your code uses spaces as the delimiter which means that for text like this...
testing (jill@gmail.com) this
it returns this...
(jill@gmail.com)
rather than this...
jill@gmail.com
And, of course, it will retain other adjacent non-email-characters as well. If you look at the code I posted, those characters are not retained with the email address itself.
Bookmarks