Check decimal and total length of number

Using regex, I can check if it is decimal or not

^d*.?d*$

But what I want to control is total length of those digit.

(^d*.?d*$){1,10}

But I still cannot control it.


Source: regex

Leave a Reply