Answer the question
In order to leave comments, you need to log in
How to compose a regular expression to remove the last zero in a number if the number is with a dot?
Hello!
We have the following numbers:
900
900.00
900.90
Should be:
900
900
900.9
I can't make a regular expression.
All that could give birth: \.00+ or \.\d{1,}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question