How to extract Access Code from email

I want to extract the Access code from the below email (E.g. 2036309 )
Can anyone please help me to get it done.

You requested a one-time access code to log into your member account. Please enter the following access code within the next 10 minutes, and click Submit:
Your One-Time Access Code: 2036309
This is an automated email. Please do not reply to this message.

Thank you for helping us keep your account safe.

1 Like

Hi @vaibhav2.chavan,

You can try using regex expression it is easy way to extract Access code.

Refer below Links:

Hope this helps, If it works mark as solution.

Thanks,
Neelima.

Hello

For a more detailed response, insert the below Regex Pattern into a “Matches” activity. Write the Result out using a write line activity like this: OUTPUTVARIABLE(0).tostring
(Update the capital letters with the variable name).

Regex Pattern:
(?<=Access\sCode:\s)\d+
Preview the result here

Check out my Regex MegaPost for some more information and how to learn Regex :slight_smile:

Hopefully this helps.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.