How to extract data from PDF with substring or regex?

Hello guys, I need help to get this text highlighted in red below, from a PDF, using substring or regex, can someone help me please?

TExtoPDF

@Romario_Almeida - Instead of Image, can you please post the text file here?

@Romario_Almeida
give a try if you can anchor on the line above, (win linebreaks \r\n also handling)
grafik
refering to the group:
grafik

feel free to do some adioptions on the Linebreak definition (with/without/optional \r)
Kindly note: the anchor text was simplified, due working within other locals)

@ppr
It worked, thank you so much for your help

@ppr
Hello, I just found this different type of PDF below, can you help with this one?

@Romario_Almeida
maybe we can trick as following (2 matches = demo as it is working on the variants)
grafik

(?<=TEORICA PRATICA TOTAL)\r?\n((.|\r|\n)*?)(?=\r?\n\r?\n)

@ppr
It worked, thank you so much for your help

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