How to extract the the Passcode from the email body

How to extract the the Passcode from the email body.

I’m receiving the email in below format, from there i want to take the passcode (1996) and then i will be able to login to the system.
Please suggest. Thanks in advance!

Email Body -

User ABC

You have requested online access from our website.

Your time-sensitive One-time Passcode is 1996

Please enter the code into the form for which you have requested access. Thank you for utilizing our services.

1/ Get the e-mail using one of methods available in UiPath



2/ Get the e-mail body
3/ Parse the e-mail body using RegEx to extract the passcode - there are numerous articles about regex in the forum

Cheers

1 Like