Hi @salemalkilani,
Welcome to the community! I have made a workout in English (using the regex code), hope it should works for you in Arabic too. To learn more on regex please have a look at the support article here.
In the survey tab of your xlsform:
Data entry screen as seen in Enketo:
Reference xlsform:
Regex.xlsx (9.6 KB)
N.B. This workout supports character(s) between 1 to 50. To increase or decrease please change the {1,50} from within the code.
Have a great day!


