Hello everyone, I wanted to know how to allow only (capital letters) in text type writes
Hi @abass,
Have you gone through the post that has been discussed previously. It should solve your issue:
Have a great day!
Thank you Kal_Lam
Hi Kalyan,
This is Priyanka here. I want name to be entered only in capital letter. It can be 2 or 3 or 4 or 5 or 6 words in the name of the participant.
example: REEMA MISHRA OR REEMA DEVI MISHRA OR REEMA DEVI SHARMA MISHRA.
I used the following regex but and it allow 3 words in name eg REEMA DEVI MISHRA.
regex(., ‘^[A-Z]{1,}[ ][A-Z]{1,}[ ][A-Z]{1,}$’)
so my problem here is, some time it can be 2 words sometimes 3 or 4 or 5 so in this case what should be my regex?
Please help me on this.
Thank you so much Hakan, it is working.
regex(., ‘^[A-Z\s]+$’) works too.
Hi everyone,
This works for the Spanish alphabet.
regex(., ‘^[A-ZÑÁÉÍÓÚ\s]+$’)
Best regards,