I'm having an ng-pattern
that validates for a ration like 4:6 as shown below:
ng-pattern="/^(\d+):(\d+)$/"
I want also to validate if decimal numbers are entered as rations along with the above validation.Example :5.4:7.1
I trid by giving ng-pattern
as
ng-pattern="/^(\.[0-9]{1,2}+):(\.[0-9]{1,2}+)$/"
But not triggering the validation.Please suggest me where I'm going wrong..