Created
February 13, 2013 16:10
-
-
Save saturngod/4945675 to your computer and use it in GitHub Desktop.
check myanmar text or not
This file contains 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
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