I'm not a new coder, but new to google app scripts. I am trying to take a string and find the email address contained within the string.
string = "This is the body of the cell where I will be looking. This body has an email in it somewhere like john.doe@aol.com here.";
email = FindEmail(string);
MailApp.sendEmail(email, "Completion Email", "", "this is the email message");
I need to build a function called FindEmail but frankly have no idea how to start.