How to find specific Number of String using Regex

I need to find with the regex or similar functions the value right after “15-TOTAL TO COLLECT”
(txt attached)

Example:15-TOTAL A RECOLHER\n|\d{2}[.]\d{3}[,]\d{2}

I need this value

Remembering that this value changes depending on the document.

All that’s left is to get this value to finish the project =\

Obs: I put 3 attachments as an example of different values

Thanks in advance
GRF_03562124000906_05072021_161524.PDF.txt (1.4 KB)
GRF_03562124001201_05072021_161525.PDF.txt (1.4 KB)
GRF_03562124001392_05072021_161525.PDF.txt (1.4 KB)


Try with this expression

(?<=15\-TOTAL A RECOLHER\r?\n\r?\n)[\d\.\,]+

Thank you my friend !!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.