I have a very simple sequence that:
Reads a pdf with OCR, outputs as ReadPDF string variable
A Matches activity with a regex formula of "(?<=Order Number\n\n)\d{5}" that outputs an |Enumerable variable WorkOrder
And an Assign activity to put the result into a variable idOrder = WorkOrder(0).ToString
The Regex works in the test environment: https://regex101.com/r/dmYhAY/8
I am getting an error: Assign: Object reference not set to an instance of an object.
I've used the matches activity successfully many times before and I'm not sure why this isn't working. Is there anything I'm using in Regex, (like \n) that isn't allowed in UiPath's use of Regex or something?