Allowing input size in Text box

Hi.
I tried This:
Restrict an input of any characters (up to 6 characters long) consisting lowercase letters: regex(., ‘^[a-z]{1,6}$’)

Restrict an input of any characters (up to 10 characters long) consisting uppercase letters: regex(., ‘^[A-Z]{1,10}$’)

BUT both are not working, I want to allow user to input in a text box;
Aghgggh BBBB hhhhh Mnnn ( upto only 70 characters with space)
Any suggestion

Hi @LeoM,

Or maybe you could also simply try this out:

If you wish to input only alphabets (up to 70 characters):

regex(., ‘^[\D\s]{1,70}$’)

If you wish to input both alphabets and numbers (up to 70 characters):

regex(., ‘^[\D\d\s]{1,70}$’)

Thanks Kal, its working


  1. \D\d\s ↩︎

1 Like