title: JSF: Validation for Special characters
body: <p>I want to apply validation for Special characters like <code>(,/'#~@[]}{+_)(*&amp;^%$£"!\|&lt;&gt;)</code>
  using the jsf validator. i have implemented the validator for number but now i want to make validator for Special characters.</p>
  
  <pre><code>value.toString().trim().matches();
  </code></pre>
  
  <p>What will be the regular expression inside the <code>matches()</code> method in java class?</p>
  
  <p>i want to allow all the field excluding the specified characters.</p>
  
  <p>thanks in advance </p>