Need to extract data from textfile

HI,

How about the following expression? This extract numeric characters which exists at the end of the next line of “PO NUMBER” (Because I guess it’s PO NUMBER)

System.Text.RegularExpressions.Regex.Match(strData,"(?<=PO NUMBER[\s\S]+?)\d+(?=\r?\n|$)").Value

Sample20230907-3L.zip (14.4 KB)

Regards,

1 Like