angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 258 forks source link

Custom mask for blood pressure #220

Open demorales13 opened 7 years ago

demorales13 commented 7 years ago

Hi, I tried to make a blood pressure mask but I could not. The pattern that I'm using is ^[0-9]{2,3}\/[0-9]{2,3}$. This pattern work fine but the mask does not allow me to place 2 or 3 numbers before or/and after of the "/". Thanks in advance.