-
-
Save yobotn/4ca4a4ca454f92d1edf1a5f1e82c48e7 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