Get text between two defined words

Hi. I have a Read PDF With OCR with Text Output “pdf”. I need to get part of the string “pdf”, between a first word “RECLAMAÇÃO” and a last word “RECLAMAÇÃO”. How can i do it? Tanks!
image

strPattern = "(?<=RECLAMAÇÃO)[\s\S]+(?=RECLAMAÇÃO)"

strValue = System.Text.RegularExpressions.Regex.Match(strInput, strPattern).Value

Tanks PPR!.. But returns a blank output… somethig i dont understand well?

grafik

Currently we dont know what was modelled in detail by you. Feel free to share these details and sample text

UPD1:
we recommend to keep variable names strict NIF vs nif - upper vs lower case

Also make use of the immediate panel for RnD and prototypings: