Regex to match Hebrew and English characters except numbers

iYonatan picture iYonatan · Jul 31, 2014 · Viewed 12.3k times · Source

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?

Answer

Explosion Pills picture Explosion Pills · Jul 31, 2014

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

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