Thanks guys for your help! I'll get back to my project over the weekend and see if any of this works for what I'm doing!
Lindsay On Aug 9, 2:09 pm, Karl Swedberg <k...@englishrules.com> wrote: > haha, you got me! so, yeah, it would be a bit more work. point > taken! :-p > > --Karl > > On Aug 9, 2009, at 1:55 PM, Michael Geary wrote: > > > 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.