11.RPA Challenge - Regex to match Invoice number and Order number on consecutive lines

Hi All,

Here is my solution. I used a regex pattern that @ClaytonM posted in

(what a legend! I need to try and understand regex a lot more than I do right now)

StringData.Split({“Total Invoice”},System.StringSplitOptions.None)(1).Trim.Split(System.Environment.Newline(0))(0).Trim

To pick the first item after ‘Total Invoice’

StringData.Split({“Total Invoice”},System.StringSplitOptions.None)(1).Trim.Split(System.Environment.Newline(0))(1).Trim

To pick the second item after Total Invoice

Anyway here’s my attempt

Chall11_RegexInvoiceOrder.zip (94.2 KB)

I didn’t need to generate the data table and then convert it back to text (which I had from the Get full text activity) but I think I was considering going through the data table one row at a time to start off with and then I remembered the regex code Clayton had done and also the challenge was about regex right!