wajid ali wajid ali - 1 year ago 87
HTML Question

how can i set html pattern negate with length range?

how can I set HTML pattern negate with length range?

<input type="text" id="address" name="address" title="Address length 4 to 30" placeholder="Your address.."required pattern="[^- &(%#$^).]*.{3,30}"></div> <div id="div3"></div>

Answer Source

I think the issue you have at the moment is that you are using the the * and {3,30} quantifiers at the same time. Try using [^- &(%#$^).]{3,30} instead.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download