I found this regular expression for Arabic letters but it is also allowing numbers with letters. How can I change it to let it allow letters only ?
/[\u0600-\u06FF]/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Probably you’d have to check what range the numbers match and exclude it (formally not include in brackets expression).
Here I’ve found another helpful source.
I’d suggest this for only letters
as this matches arabic digits only
Edit:
I’ve found that there are two ranges for arabic and arabic-indic digits in unicode.
If you need a regex to match a line just then, when it contains arabic letters and numbers – use this:
If you want to also discourage arabic digits – use this:
If you want to match a substring, not only a whole line, use this: