I am using Validators.pattern(/^[1-9][0-9]{0,2}$/) to allow only numbers from 1 to 999 on the number input field.
This regular expression is validating correctly even for -ve values if selected from input range arrows(have set min=1, max=999 on <input>). But when I type number explicitly its accepting 099, 0999, 0990 too and not displaying error. The same pattern when checked in regex101.com says "no match" for inputs starting with 0. Why is the same regex pattern working weirdly in actual code(matching) and regex101.com(not matching)?
type="text"