i am looking for a regular expression to put in ng-pattern attribute of angular.
i am looking for an expression that satisfies only a specific decimal pattern i.e.
exactly one digit --> than a decimal --> exactly 2 digits
i came up with
\d{1}\.{1}\d{2}?
The above pattern matches the following numbers correctly.
2.22
3.12
0.34
which is fine but if user enters 12.12
it doesn't reject this as I need it to.