Get first bit of text on line 8

I am use a regex to try and get string from my PDF.

System.Text.RegularExpression.Regex.Match(PDFText,“(?>=Total Due).+”).ToString

It’s not working. I am new to using Regex so there may be some mistake in my code but I just want the highlighted piece in the below image. Thoughts?


can you provide the sample text here

refer to group 1

and keep in mind:
line terminators = \n so a . will not span over to the next line

I’m sorry I’m not understanding what you are showing here. I tried that experssion you put and it does not work.

so just have preparing self training on regex: