cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistent Regex Behavior

LeoLugo
Level 2

My process does the following

  1. Pulls a value in from Excel as text.
  2. Checks if the value matches the Regex pattern "^\d{3}$" using the Test Regex Match action.
  3. Makes a decision based on the Matched? output of the action.

I'm trying to make sure the field contains 3 characters that are numbers i.e. "123", When I run in debug the action behaves as expected. When the process is ran from Control Room it randomly matches 2 digit text such as "30" or "17". The issue is inconsistent. During the same run, text such as "55" will fail to match which is what I expect. Does anyone have any insight as to why this might be happening?

3 REPLIES 3

Hi Lee Lugo,

Did you get chance to check in the logs? and see whether the data is adding "0" either at the beginning or ending?

-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

DevendranVenkatesh
Verified Partner

if possible can you share the screen shot of your logic and logs?

Best Regards, Devendran Venkatesh RPA - Technical Architect | Riyadh 11413, Kingdom of Saudi Arabia

Hi Leo,

I hope you are using AVO Regex for your use. If not download it from DX portal that is most recommended VBO for regex.

Regards,
Amlan Sahoo