Regex to match Hebrew and English characters except numbers

送分小仙女□ 提交于 2019-12-09 13:17:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!