Im trying to use a regular expression to validate strings like:
1 %
12,25 %
99,99 %
100 %
100,00 %
Tried with this one from here
^(100\,00|[1-9]?\d\,\d{2}) %$
but i need the decimals to be optional and this one fails with strings like "90 %"
Thank you in advance,