(Other related links are in Diigo)
function hasArabic(character)
{
var arabic = /[\u0600-\u06FF]/; // http://stackoverflow.com/questions/4446244/how-to-check-if-any-arabic-character-exists-in-the-string-javascript
return (arabic.test(character));
}
function hasEnglish(s)
{
var english = /[a-zA-Z]/;
return english.test(s);
}
function hasNumbers(s)
{
var numbers = /[0-9]/;
return numbers.test(s);
}
No comments:
Post a Comment