问题
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?
回答1:
Seemingly Hebrew has the range \u0590-\u05fe
(according to this nice JavaScript Unicode Regex generator`.
/^[a-z\u0590-\u05fe]+$/i
回答2:
Try this. Not sure if it will work. If not, these references should help.
[A-Za-z\u0590-\u05FF]*
Hebrew Unicode
Unicode in Regular Expressions
来源:https://stackoverflow.com/questions/25067355/regex-to-match-hebrew-and-english-characters-except-numbers