How to get the email out of a "reply to" string?

Hey there!

I’m using the Get a Subscriber MailerLite module to add a subscriber using an email reminder I always receive. The email address from the subscriber I want to pull is in the “reply-to” field and it looks like this:

1 =?iso-8859-1?b?Sm/jbw==?= Doe <johndoe@domain.com>

I just want the email out of this string.

Is there a way to pull it?

Thank you!

Hey there,

you can use a regular expression. Getting email string ones are quite common and you can easily find ready to use ones online.

Depending on the exact use case, you can use the Match Pattern module inside the scenario.

I managed to solve it by using the text parser and then this function:

get(match({{5.headers.reply-to}}; “<(.*?)>”); 1)

Thank you!

2 Likes