"0" is not detected as a digit by the system

Hello everyone, in my survey I would like to put a restrictions of 12 digits in my questionaries. This is my constaint “regex(.,’^[0-9]{12}$’)” and normally it seems its working properly but when the number starts with a “0” like this “000012123123” its not accepted because it starts with “0” but i want it to consist of 12 digits in total even if the digit starts with “0”. I hope I could describe my problem clearly. I would be happy if you could help. Thanks in advance.

@anilgnydn, maybe if you have not gone through this post previously:

1 Like

Ok Dear @Kal_Lam, I have solved my problem by this formula (regex(., ‘^[000000000001-999999999999]{12}$’) and (. >= 000000000001)) I forgot to change data type as text thats why it was not worked…

1 Like