-1

I have a textbox and i want the input for the textbox to satisfy to conditions: a) It should be a number b) It be should be greater than 5. What should be the regular expression for that?

1 Answers1

2

Instead of regex you can use <input type='number'... Check snippet below

 <input type="number" name="quantity" min="6" />
Super User
  • 9,448
  • 3
  • 31
  • 47