I have a regex, which gives me the numbers before “invoice” in a text, e.g. 3x invoice -> 3:
Now the thing is that it can occur multiple times, e.g. 2x invoice, …, 3x invoice
I would like to get the sum of all numbers that match in Regex, e.g. 5 in the example before
Is this possible?