if (value.match(/^[A-Z]*$/)) { // matches } else { // doesn't match }
function hasLowerCase(str) { return (/[a-z]/.test(str)); }