title: Username Password Regular Expression
body: <p>I'm trying to make a regular expression to match a username password pair on files, that have at least 1 uppercase letter, 1 downcase letter, 1 number and 1 symbol. I'm using the following regex:</p>
  
  <pre><code>\b(([a-zA-Z0-9]){5,20}((\\\\=)|( ?([=:]|(-&gt;)) ?)|( =\\))((?=.[a-z#{@specialDown}])(?=.*[A-Z#{@specialUp}])(?=.+[0-9])(?=.+[\!\@\#\$\%\^\&amp;\*\(\)\_\+\|\~\-\=\\`\{\}\[\]\:\;\'\&lt;\&gt;\?\,\.\/])).{8,20})\b
  </code></pre>
  
  <p>the specialDown and specialUp variables are special letters in downcase and uppercase respectively.</p>
  
  <p>The problem here is that I'm getting passwords with whitespaces, which I don't want.</p>
  
  <p>Can anyone help?</p>