Možda:
Kôd:
String.prototype.isCyrilic = function() {
if(!this || this.length == 0) return false;
var re = /^[\u0400-\u04FF]+$/i
if(!re.exec(this)) return false;
return true;
}
alert('абвгдђежзијклљмнњопрстћуфхцчџшАБВГДЂЕЖЗИЈКЛЉМНЊОПРСТЋУФХЦЧЏШ'.isCyrilic());
alert('asdfčćžšđ'.isCyrilic());
http://www.devprotalk.com/t8274-js-v...m-slovima.html
__________________
Don't look at me; I'm lost too.
“If you can't dazzle them with brilliance, baffle them with bul*s**t.”
Poslednja izmena od Br@nkoR : 26. 09. 2011. u 11:55.
Razlog: dodat link
|