How to enter "001, 002 ..."

Hi everyone,

I have a question to enter the patient code. The patient code consists of 3 digits from 001 to 100. I tried using regex (., '[0-9] [0-9] [0-9]') but not. Please help me find a way to solve this problem.


Hi @Huy_Tron! I see two problems:

  1. If you want to use a regular expression constraint on a number, make sure that the type of your question is text and appearance is numbers. This is because regular expressions only apply to strings.
  2. Don't put spaces. It should be [0-9][0-9][0-9], not [0-9] [0-9] [0-9]. Actually, you could reduce the regex to '[0-9]{3} and that would also work.

What I mentioned above is described in great detail in our docs at I'd encourage you to read those docs if you have more regex questions.

Also, when you get a chance, please introduce yourself here. It helps build community!

1 Like