How to allow only (capital letters) in text type writes

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!

1 Like

Thank you Kal_Lam

1 Like

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.

@Priyanka:

1 Like

Thank you so much Hakan, it is working.

regex(., β€˜^[A-Z\s]+$’) works too.

2 Likes

@hakan_cetinkaya, :clap: :heart: :partying_face:

1 Like

Hi everyone,

This works for the Spanish alphabet.

regex(., β€˜^[A-ZΓ‘ΓΓ‰ΓΓ“Γš\s]+$’)

Best regards,

2 Likes

@segadu78 :clap: :heart: :partying_face: