Looking for the right Condition to find email subject line with 9 digit number

Hello Everyone- I want to check my gmail subject line for a 9 digit number. I am using an If activity after the For Each activity and I need help with the Condition in order to pull that 9 digit number.
Thank you!

@Jessica_Moseley

Welcome to the uipath community.

Assign that subject to one string variable and use below Regular expression to find 9 digit number.

             \d{9}

Hi
Welcome to uipath community
We can use this expression in your IF condition
System.Text.RegularExpressions.Regex.IsMatch(str_input.ToString,”[\d]{9}”)
If true it will get us to THEN part of IF condition

cheers @Jessica_Moseley

Thank you!

1 Like

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