Skip to content

Instantly share code, notes, and snippets.

@YaronMiro
Created October 9, 2018 12:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save YaronMiro/248ed7b6a3113ff1fa3b1cffc5545a9f to your computer and use it in GitHub Desktop.
Save YaronMiro/248ed7b6a3113ff1fa3b1cffc5545a9f 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