I am trying to extract the £ value at the end of each of these lines:
Subtotal test test £20.00
Value £10.00
Subtotal test 2 £4.00
Value2 £30.00
Except I don't want to include any lines that start with "Subtotal"
So, to be clear, in this example, I just want to return:
£10.00
£30.00
I have had limited success so far, with a few SO examples including How to match a line not containing a word. Experimenting with this (https://regex101.com/r/NcXg2m/1) has got me started with:
(?m)^(?!Subtotal.*).*
Which gives me the whole lines for everything not starting with "Subtotal".
After looking through https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference, I thought the next step would simply be to add £.*
to the end, but this still returns the same. Can someone please tell me where I'm going wrong? Thanks