Created
October 9, 2018 12:43
-
-
Save YaronMiro/248ed7b6a3113ff1fa3b1cffc5545a9f to your computer and use it in GitHub Desktop.
JS regex Hebrew characters (Allowed also space (' ') and dash ('-') )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const onlyHebrewPattern = new RegExp(/^[\u0590-\u05FF ,.'-]+$/i); | |
const isValid = onlyHebrewPattern.test(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment