i want to find the last word matching my expression and get the numbers as a total sum. So here is my problem. My Document says:
Vat-Total: 123.45
Total: 345.67
So i tried to get the sum with:
(?<=Total:)([\s]*)((((\d+)[,.]{1,10})+\d{0,2})|(\d+(?!,)))
But my problem is, that it finds the first occurance of Total in the first line. I want to extract the sum from the last line. Even if i try to Escape it with \b it finds the first word and does not match the last one.