XF 2.3 accept only Arabic names

kbas

Member
Hello..

How can I accept only Arabic names and disallow numbers in new users regustrasion?

what is the proper regex to implement that?

TIA.
 
As per the ticket, the only regex I could find was /^[ء-ي]+$/i .

However, I have no means of knowing whether that is valid, so perhaps others who use Arabic can assist.
 
As per the ticket, the only regex I could find was /^[ء-ي]+$/i .

However, I have no means of knowing whether that is valid, so perhaps others who use Arabic can assist.
Thanks Paul..

I tried the above regex with many examples, but ended with /^[ء-ي ك ل ف ق م ن ه و]+$/i , and it works!

I tried all 28 Arabic characters and didn't get any error.

I added the letters to the end because I got an error, and when I added it, I was able to add the letter mentioned.

any comment on that?

Thank you.
 
I found this
Thanks, Old Nick. I visited that page and tried most of the regex in it. As Paul mentioned, they are not accepted by XF.

Regards.
 
Back
Top Bottom