title: Search in SQL table through JTextField key released with both UPPERCASE or LOWERCASE
body: <p>I want to search customer name in SQL table through JTextField key released in NetBeans.</p>
  
  <p>Here is my code of JTextField key released :</p>
  
  <pre><code>DefaultTableModel table = (DefaultTableModel)jTable1.getModel(); 
  String search = jTextField1.getText(); 
  TableRowSorter&lt;DefaultTableModel&gt; tr = new  TableRowSorter&lt;DefaultTableModel&gt;(table);
  
  jTable1.setRowSorter(tr);
  tr.setRowFilter(RowFilter.regexFilter(search));
  </code></pre>
  
  <p>For example, If I want to find a customer name <code>" RoNaldo "</code> when I write starting word like that <code>" ronaldo "</code> then it's not working. Actually when writing the same word like that <code>" RoNaldo "</code> then it would be shown in the table. So, please provide me the right code for this.</p>