- Go to Edit Questions page of your survey
- . Click on your question title to edit the question
- . Click on Customize tab of your textbox type question
- . Enter your regular expression in the “Regular Expression” field.
For example, if you want to restrict user to enter either single or two digit number, enter ^\d{1,2}$