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
android filter regex android-listview


source to share


No one has answered this question yet

Check out similar questions:

1323
RegEx match public tags, excluding XHTML tags
1002
Grid motion detection
839
Full regex to validate phone number
775
list versus lambda + filter
434
How to hide underline in EditText
62
Filtering ListView with custom (object) adapter
1
Android: custom adapter filtering results do not reflect in UI
0
How to filter listView without notifyingDataSetChanged?
0
Simple adapter, invalid index while filtering
0
Clear () in custom listview adapter also update list data



All Articles
Loading...
X
Show
Funny
Dev
Pics