Constraint condition for some common words

Hello ODKers,

Can i make text box not accept some values . For example text box should not accept "Hospital" or "hospital" or "hOspital" etc . i.e irrespective of the case of alphabets it should not accept the word . Similarly can we do it for multiple values like Hospital , Sub Center and etc . I have tried few ways but didn't get required output.

Thanks and regards,

Maybe you can try using regex?

Hello @Grzesiek2010 ,
With regex can we add a condition not to accept some "words" ? . I have tried using "not" . It was helpful only for single word not multiple words.

Thanks and Regards,

I don't know regex good enough but I'm pretty sure it must be possible. For example, it's a regex which accepts only word hospital (case insensitive):
(?i)\hospital\b’ so you need to negate this regex only (?).