Skip to content

Instantly share code, notes, and snippets.

@yobotn
Forked from YaronMiro/regex-Hebrew.js
Created January 19, 2022 16:33
Show Gist options
  • Save yobotn/4ca4a4ca454f92d1edf1a5f1e82c48e7 to your computer and use it in GitHub Desktop.
Save yobotn/4ca4a4ca454f92d1edf1a5f1e82c48e7 to your computer and use it in GitHub Desktop.
JS regex Hebrew characters (Allowed also space (' ') and dash ('-') )
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