How do I isolate these values as within a PDF?

Hi @dr1992

If you see this is the correct regex ^.*?(?=\s\d+.\d+)

You gave a extra Bracket at the end

cheers

Your origional regex was: ^.*?(?=(\s\d+.\d+)) :wink:

But even when I removed this, the result in my message box is:

Hi @dr1992

this is how you access it…I hope this solves

it is a collection of match…So we have to access them individually

cheers

I must be doing something wrong here, it doesn’t write anything. The collection shows {0}.

Hi @dr1992

Please add one more property that I missed(RegexOptions.Multiline)

System.Text.Regularexpressions.Regex.Matches(str,"^.*?(?=\s\d+\.\d+)",RegexOptions.Multiline)

Because of this you are not getting any matches

cheers