Hello, I have this line in a txt file:
Total Taxes $56.26 CAD
where I need to extract the number only without the dollar sign
using Regex 101, I get this to work: Total Taxes $(\d+(?:.\d+)?)\sCAD
I have a variable named Match with type system.match and I assign it to:
Regex.Match(BankFeePDFtxt.tostring,“Total Taxes $(\d+(?:.\d+)?)\sCAD”)
however, when I use a message box to display match.groups(1).Value.Trim, the value is empty.
Can someone please help?
thank you very much @Palaniyappan, however this txt file has many rows and I need to have the “Total Taxes $” as part of it so the correct value from that line only will be extracted. Will you be able to help me more?