title: Javascript - RegEx Uppercase and LowerCase and Mixed
body: <p>I have this code:</p>
  
  <pre><code>var cadena = prompt("Cadena:");
  
  document.write(mayusminus(cadena));
  
  function mayusminus(cad){
      var resultado = "Desconocido";
  
      if(cad.match(new RegExp("[A-Z]"))){
          resultado="mayúsculas";
      }else{
          if(cad.match(new RegExp("[a-z]"))){
              resultado="minúsculas";
          }else{
              if(cad.match(new RegExp("[a-zA-z]"))){
              resultado = "minúsculas y MAYUSCULAS";
              }
          }
      }
      return resultado;
  }
  </code></pre>
  
  <p>I always have <strong>mayusculas</strong> or <strong>minusculas</strong>, never <strong>minusculas y MAYUSCULAS</strong> (MIXED), I am learning regexp and dont know my error yet :S</p>