candreoliveira / ngMask

Best Angular mask alternative! No jQuery, pure JS. About ~6kb!
http://candreoliveira.github.io/#/ngMask
ISC License
419 stars 171 forks source link

0-5 digits? #46

Open im1dermike opened 9 years ago

im1dermike commented 9 years ago

I can't seem to get the regex max implementation to work. I need to create a mask that is a number, 0-5 digits in length. I've tried various things like the following but to no avail:

<input mask="/\d{0-5}\" />

Tanato commented 9 years ago

have you tried:

<input type='text' mask='9?' mask-repeat='5' />