I have this text "£24,250.00 (inc. VAT)"
I want a regex that will show ONLY "24250.00"
I've managed to get the last portion with:
( \(inc\. VAT\))
And separately I can get the £ and , with:
[£,]
But I can't seem to work out how to combine both expressions to just return what I want.
Note that the number is dynamic so will change depending on applicable costs on a website.
In theory I could just run it through two separate regex in my c# code each one trimming what I want. But is there a way that it can be done with just one expression?
Reason for this is I have a GetConvertedExtension method that takes an IWebElement, a string (the regex) and then converts the string to Double, Int etc
I don't really want to change this extension method or avoid using and going down the root of multiple expressions and then a parse statement.
I've used https://regexr.com/ to try getting a working solution but with no luck and starting to struggle.
I'm using Visual Studio 2017 and C# with the Regex library