I’m having difficulty putting together a regular expression for a numeric input of 0-15.
I have tried this expression:
^([9]{1,1}|[0-1][0-5])$
<asp:FilteredTextBoxExtender ID="TMPFiltered" runat="server" FilterMode="ValidChars"
FilterType="Custom" ValidChars^([9]{1,1}|[0-1][0-5])$" TargetControlID="txtTMP" />
however it is allowing for higher maximums than 15. Where is my syntax incorrect? Any help is appreciated, thanks.
You were almost there
^([1-9]|1[0-5])$is what you needThe only change i made in your regex
[9]{1,1}to[1-9]..no need of{1,1}since its already matching 1 time in[9]