regexvalidationhebrew

Regex to match Hebrew and English characters except numbers


I have a question: I want to do a validation for the first and the last name with RegEx. I want to do it with only Hebrew and English without numbers. Someone can help me to do that code?


Solution

  • Seemingly Hebrew has the range \u0590-\u05fe (according to this nice JavaScript Unicode Regex generator`.

    /^[a-z\u0590-\u05fe]+$/i