Skip to content

Instantly share code, notes, and snippets.

@saturngod
Created February 13, 2013 16:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saturngod/4945675 to your computer and use it in GitHub Desktop.
Save saturngod/4945675 to your computer and use it in GitHub Desktop.
check myanmar text or not
var regexMM = new RegExp("[\u1000-\u109f\uaa60-\uaa7f]+");
var text = "မြန်မာ";
if (!regexMM.test(text)) {
console.log("not myanmar text");
}
else {
console.log("myanmar text");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment