Flowchart Activities-regex

Hallo, I want to extract these C and P numbers from the body of the email, they are categorized like that how can I use regex and flowchart so that the bot can extract anyone of these if they are on the body of the email:
For example, anything that has a pattern of AAH/AHPM , take that as a C number and so on. I want to use flowchart not nested IF condition as it may get complex …
Please see below:

Hi @Anelisa_Bolosha1

You could use the following Regex:

\S{3}/\S+

1 Like

Hi @Anelisa_Bolosha1

C Number Regex: AAH/\w+|AHPM/\w+
P Number Regex: AAP/\w+|AHPP/\w+

Use Regex Matches activity with emailBody as input and the pattern. Access result like: matches(0).ToString.

If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath

1 Like