Need regex syntax for variable

Hi all,

I need the regex syntax for variable

Variable name should start with - caps alphabet or dt_Caps alphabet
Success cases -Elemenet or ElementExist or TransactionID or dt_TransactionID
Error cases
elementExist or elementId or Dt_TransactionID or dt_transaction

Please let me know if anyone know the answer.

Best Regards,
Naveen Chaganti

2 Likes

The following regex would work: \b([A-Z]|dt_[A-Z])[a-zA-Z]*\b

1 Like

@Dave
Thank you for quick response and solution

1 Like

Hi Naveen

Hope you are doing good

This is the Regex for exact match
^[A-Z][a-z0-9A-Z]+$|^(dt_)[A-Z].+

Cheers @Naveen.Ch

3 Likes

Thank for solution

2 Likes

Hi
Welcome to uipath community

Cheers @meetkatewilliams