Regex---Help

Hello everyone,
I have to check, if string contains any number or any other special character then simply ignore that variable like we have : ABC12345Ab , ABC…, ABA–56, then simply ignore ,

Please help me to achieve this.
Thank you,

Hi @Anjali_Rani

you can use regex activities in uipath like ismatch activity with expression, which would return boolean value as whether it has or not

If this above expression returns false then kindly ignore as per your request

Hi,

Another solution:

The following expression returns True if string contains except alphabet.

System.Text.RegularExpressions.Regex.IsMatch(yourString,"[^A-Za-z]")

Regards,

2 Likes

Thank you, This is working :slight_smile:

1 Like

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