title: Case Insensitive Matching in JSR-303 Bean Validation and Primefaces CSV
body: <p>I am using Bean Validation and i want to allow case insensitive input.
  'tas123' and 'TAS123' should be valid inputs. Lowercase is working but uppercase like 'TAS123' fails.</p>
  
  <pre><code>  @Pattern(regexp = "^$|^tas.*$", message = "Task ID must start with TAS", 
    flags = {Pattern.Flag.CASE_INSENSITIVE, Pattern.Flag.UNICODE_CASE})
    private String taskId;
  </code></pre>
  
  <p>I am using this in Primefaces Client Side Validation. Is there something wrong in the pattern or does primefaces not support CASE_INSENSITIVE flag on client side?</p>
  
  <p><strong>UPDATE:</strong>
  I have tried to disable client validation with <code>validateClient="false"</code> but the validation still fails on server side.</p>
  
  <p><strong>UDATE-2:</strong>
  Using <code>regexp = "(?i)^$|^tas.*$"</code> works in Primefaces only with <code>validateClient='false'</code>. Enabling client validation leads to an error message displayed to the user: 'undefined'. No javascript errors are displayed in the firebug console.</p>