Regular Expression Filter Adapter

I have implemented a listview and an edit box that filters the data in the listview. I use

myAdapter.getFilter().filter(txt);

      

It works great when the txt contains a sequence of char from the beginning of my data. For example. for the value "This is my value" and filtering the "value" it passes the filter, but when I remove the "v" and the filtering text is "alue" the filter removes it from the adapter.

Is there a way (other than implementing my own filter) for filtering by regex or something like that. Thank.

+3


source to share





All Articles