i have text entry field for user to input medical diagnosis. how can i restrict user to enter only alphabets, numbers, and a few other punctuation marks eg comma, fullstop, dash, apostrophe?
ultimate plan is to prevent users from entering something like a smiley etc.
thanks!
Best answer by omkarkewat
hi @sics_sue_choo The below regex will allow strings that contain only alphabets, numbers, commas, full stops, apostrophes, spaces, and dashes. It will reject strings that contain any other characters, such as smileys or special symbols. You will need to add the characters, symbols in the below regex code that can be allowed in the open text box.
hi @sics_sue_choo The below regex will allow strings that contain only alphabets, numbers, commas, full stops, apostrophes, spaces, and dashes. It will reject strings that contain any other characters, such as smileys or special symbols. You will need to add the characters, symbols in the below regex code that can be allowed in the open text box.