title: Allow only lowercase characters
body: <p>I use following code to check if a user input is lowercase or not. I will allow characters from <code>a</code> to <code>z</code>. no other characters allowed.</p>
  
  <p>JavaScript file:</p>
  
  <pre><code>var pat = /[a-z]/;
  
  function checkname()
  {
    var t = $("input[name='user_name']").val();
  
    if(pat.test(t) == false)
    {
      alert('Only lowercase characters allowed');
    }
  }
  //... other functions
  </code></pre>
  
  <p>But this donot work all the time. If I enter <code>industrialS</code>, it will not find that capital 'S'.</p>
  
  <p>I also tried: <code>/^[a-z]$/</code> and <code>/[a-z]+/</code>. But not working.</p>
  
  <p>PLease help me.</p>