Extract email from a message

Thanks so much for sharing your example data and workflow @lfilippi!

I noticed two things here:

  1. Your webhook node would pass on your data to each of the Date & Time nodes, so you’re essentially duplicating your data here. You might want to consider putting the Date & Time node in a sequential order to avoid this.
  2. For your email extraction, I think something like /\s+(.+)$/gm could do the job, assuming your email is always at the end of the line. I have built this using regex101.com which you might find helpful as well.

Below is an example workflow including both suggestions. I have replaced the Webhook node with a Function node to make it easier to test:

Result:

Let me know if you have any questions on this!

2 Likes