 <p>You were almost there</p> <p><code>^([1-9]|1[0-5])$</code> is what you need</p> <p>The only change i made in your regex <code>[9]{1,1}</code> to <code>[1-9]</code>..no need of <code>{1,1}</code> since its already matching 1 time in <code>[9]</code></p>