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.

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

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



--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com

Reply via email to