How to match arabic words with reg exp?
javascript, regex
Solution
You can create a character class which will match arabic language only:
/^[\p{Arabic}]*/
Here is the full reference
Problem
I have a string like this: "سلام علیکم" which is a two word arabic phrase. I want to match first word with regular expression. If it was english I would test `/^[a-zA-Z]*/`. how can I do it with arabic?