title: Range out of order in character class in javascript
body: <p>I don't know why my regex is incorrect:</p>
  
  <pre><code>var domain = "google\.com\.br";
  var reEmail = new RegExp("^([A-Za-z0-9_\-\.])+\@" + domain + "$");
  </code></pre>
  
  <p>I need this to validate an email. Example below: <code>reEmail.test("contact@google.com.br");</code></p>
  
  <p>I get this error:</p>
  
  <p><strong>Range out of order in character class</strong></p>