I have the problem that I can't get the proper
My Goal is to allow up to 3 digits before the comma, and ONLY IF there is a decimal, then 1 digit after the comma. Which
RegExp or Regexes do I have to use for this behavior?
Wanted allowed outcomes: 000.0, 00.0, 0.0, 000, 00, 0
thats the current code, but the problem is that here also 4 digits can be placed without a decimal:
I already scrolled through these but they are not working for me:
Jquery allow only float 2 digit before and after dot
Flutter - Regex in TextFormField
Allow only two decimal number in flutter input?
Read more here: https://stackoverflow.com/questions/64948159/how-to-allow-only-2-digits-and-1-digit-after-the-comma
This content was originally published by Nuqo at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.