Here's what I've tried so far. Is there something wrong with my Regex?
^(?:|0|[1-9]\\d*)(?:\\.\\d*)?.{10}$
What i did was values must be numbers only and with a maximum number of 10. I have no idea what my code doesn't catch when I input more than 10 numbers.