You need to check the field for the presence of "only" Arabic characters. Found a hint to use a regular expression and something like the following: [\ u0600- \ u06ff \ u0750- \ u077f \ ufb50- \ ufc3f \ ufe70- \ ufefca-zA-Z- .ـ] But I had a problem, the first character to the right does not fall into the range, and if you delete it, then the next one from it falls out of range (although it passed before removal).
- I propose to insert any letter that would not show it, and the rest ... - Yuri
|
1 answer
For Arabic, use [\ u0600- \ u06FF]
- The problem is that I have already tried this method and my first character does not fall into the range, and everything else falls. But if you delete it, the next one from it drops out. I can not understand what this behavior is connected with. - messiah
- Probably with a letter direction symbol. - ReinRaus
\u200eif that is the character. - ReinRaus- can you give an example of a string? - Roman Polshikov
- Yes of course. Here is an example of a line: مرحبا كيف حالك I don’t have Arabic, so I can’t understand what I’m doing wrong) - messiah
|