RegexStringComparator regexStringComparator = new RegexStringComparator("^[aA][bB][cC]$");//will match aBc or ABC or Abc any case in order of a followed by b followed by c.
SingleColumnValueFilter filter = new SingleColumnValueFilter(
cf,
column,
CompareOp.EQUAL,
regexStringComparator
);
scan.setFilter(filter);
1条答案
按热度按时间h7appiyu1#
你可以试试regexstringcomparator