In the code below I need to get the ng-pattern to receive 1 or 2 numbers, the format being in hours, that is, minimum 0 or 01 and maximum 24.
<input type="text" step="any" value="" ng-model="" min="0" max="24" ng-pattern="/^([0-2]{1}[0-9]{1}$/">