That would work for you and for me, but would it work for everyone?
 
alert( isUpperCase('JÖRN') ? 'good' : 'bad' );  // ;-)
 
-Mike


  _____  

From: Karl Swedberg

Shouldn't be too much work. Wouldn't this do it? 


function isUpperCase( string ) {
    return /^[A-Z]+$/.test(string);
}



On Aug 8, 2009, at 8:34 PM, Michael Geary wrote:



If you want to check that the string contains *only* uppercase characters
and no "case-less" characters (so that "ABC" would return true but "A B C"
would return false), that would be a bit more work. 

Reply via email to