Save value when the reference is the bottom line

Sirs,

This value marked in yellow is on a single line. However, it appears in others. The challenge is to save this line value in a variable. Remembering that only the value can change.

The reference is that the bottom line changes. “DATA DO RECEBIMENTO”

I thank you for your help.

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,".*?(?=\r?\nDATA DO RECEBIMENTO)").Value

Regards,