title: Regex for alphanumeric and special characters in jquery
body: <p>i tried to make a regex for my Address column the code is:</p>
  
  <pre><code>var str = "97sadf []#-.'";
  var regx = /^[a-zA-z0-9\x|]|[|-|'|.]*$/;
  
  if(str.match(regx))
     document.write('Correct!');
  else
      document.write('Incorrect!');
  </code></pre>
  
  <p>the special character i want that is <code>][#-.</code> the given code return me the correct match but if i add another kind of the special character like <code>@%</code> then the correct result i got, but i want the incorrect result.</p>
  
  <p>i don't know where i did wrong please help me to make right..</p>
  
  <p>EDIT: Sorry guys but the one thing i have to discuss with you that is there is no necessary  to enter the special characters that i mentioned <code>][#-.</code>, but if the someone enter other then the given special character then should return the incorrect.</p>