VfsTableModelFileNameRowFilter extends RowFilter<VfsTableModel, Integer> { String convertRegex(String patternText) { return "(?i)\\Q" + patternText .toString() .replaceAll("\\[[^]]+\\]", "\\\\E$0\\\\Q") .replaceAll("\\?", "\\\\E.\\\\Q") .replaceAll("\\*", "\\\\E.*\\\\Q"); } VfsTableModelFileNameRowFilter(JTextField textField); @Override boolean include(Entry<? extends VfsTableModel, ? extends Integer> entry);  }
@Test public void testConvertRegex() throws Exception { }