html - Can we validate .0 using regex -


i'm doing field accept whole numbers. did regex validation /^\d{1,3}$/ validating whole number entry , not allow decimal .1 e.g make 1.1 invalid when tried input 1.0 accepted it. there regex check .0?

^\d{1,3}(\.0)?$ accepts one, 2 or 3 digit whole numbers if end .0.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

.net - Generate assembly with Roslyn -

batch file - filebot superstrict script: need tiny video sample or other solution -