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
[1][a-z0-9A-Z]+$|^(dt_)[A-Z].+

image

Cheers @Naveen.Ch


  1. A-Z ↩︎

3 Likes

Hi
Welcome to uipath community

Cheers @meetkatewilliams