Hi. I am saving and reading text attachments from mail.
After I have read the text-file to a output variable, i am using Matches to extract the date from document.
My problem is that i cant get the pattern right.
I am trying to get the date marked in red, but my problem is variable words marked in yellow, and all the spacing in between “reg.fond” and the “date” marked in red.
I am using pattern: (?<=pasientskadeerst.).*?(?=\nBruker), but that marks “reg.fond” and alle the spacing in between: “reg.fond_____________________________200305”
I only want the last 6 digits (200305).