Assigning a contact from an email address in the body of an email alert

How would I search an email for an email address and then use that email to set the client in the Autotask ticket?

This is the email format:

From: Avanan
Sent: Thursday, December 5, 2024 2:39 PM
To: Support
Subject: Security event detected

Hello,
Please look at the details of the following anomaly event.
Details:

[email protected] performed geo-suspicious events: logged in from United States (216.221.27.67) and after 1 minute logged in from United States (173.160.110.50)

Just clarifying… It’s the [email protected] in the body example I would want to parse with.

You can use this regular expression:

/\S+\@\S+/

You can test and adjust it here: