First of all, the embedded case insensitive flag is "(?i)"
, rather than ("?i")
. Secondly, you do not need to put ".*"
around your string. The matcher will find it anywhere within the field as long as you do not surround it with "^"
and "$"
. It is much simpler to initialize the filter as follows:
RowFilter.regexFilter("(?i)" + eingabe, 1);