Hello all – Can someone help me with a fairly simple Regex question? I have tried a few times to become conversant in Regex but never succeeded.
I have a text question in a commcare form…
and I am hoping to add validation so that it will ONLY allow the submission if:
- the text that is entered is in fact a valid integer of any length… like 235, 29,1, 39587
- the text that is entered is this exact three-character string: <50
… Note, I think you are likely noticing that this is a pretty clunky, ungraceful UI. Believe me, I know. but it’s the result of a discussion and my team is pretty sure they want this.
Can you tell me what I would put in the validation field to allow just what I wrote above? thanks much… Perhaps this will serve as a formative tutorial for me.