Hi I know that we can validate Min and Max Length of a number using Regex.
But can we validate Min and Max Value for a floating point number using the same?
- Min Value : 0.00
- Max Value :100,000,000.00
Could anyone please just apply Min and Max Value to following Regex:
^(?=.*d)(?!.*?.[^.
]*,)d*(,d*,?)*(.d*)?$
Above Regex matches a floating number with optional decimal point and commas.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…