Regex to extract account number from a path with specific format

Hi @mnlatam

Instead of regex, could you give this a try

image

and then use the validation

AccNum = Path.GetFileNameWithoutExtension("/RPA/sample/012345678910.xlsx")

flag = AccNum.startsWith("123") And AccNum.Length.Equals(12) And AccNum.IsNumeric

AccNum - String
flag - Boolean