Created
July 12, 2019 09:28
-
-
Save khripunovpp/7e118439a7087fda04ef87e464d4da5d to your computer and use it in GitHub Desktop.
arabic string detection
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 arabic = /[\u0600-\u06FF]/; | |
var string = 'عربية'; // some Arabic string from Wikipedia | |
alert(arabic.test(string)); // displays true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment