I have a regex expression, that matches decimal numbers, but I also want it to recognise currency or a percentage.
the last part of the pattern "\%"... I only want that to be a possible match if groups(1).value = ""
so it'd match £50.50 + it'd match 12.34%, but not £56.78%
Code:
Dim rx As New Regex(String.Format("({0})?((\d+\.)?\d+)\%?", currencySymbol))
so it'd match £50.50 + it'd match 12.34%, but not £56.78%