title: find out for special characters in Java
body: <p>My requirement is 'Following characters are not allowed for value name:</p>
  
  <pre><code> [ $ &amp; + , / : ; =? @ " &lt; &gt; # % { } | \ ~ ^ [ ] ` ] '
  </code></pre>
  
  <p>I have used something like this,</p>
  
  <pre><code>Pattern pattern = Pattern.compile("[\"\\.&amp;,@!?#%'$()/\\\\ \\-_&lt;&gt;]+$");
  Matcher matcher = pattern.matcher(keyName);
  </code></pre>
  
  <p>where keyName is a String from which I am searching for presence special characters</p>
  
  <p>Can anyone provide Regex for Java Pattern-Matcher?
  Thank you in advance </p>