Possible to do wildcard filtering?
Possible to do wildcard filtering?
newtodatatables
Posts: 31Questions: 0Answers: 0
Hi, I am trying to do wildcard filtering on a datatables. I have looked through the API but cant seem to get it.
For example I have apple, banana, orange, 'banana mango' in a column. When i use *e it should display apple as 'e' is the last letter. Or when I search "b* m*" it should display 'banana mango'. Is there anyway to do this? Thanks.
For example I have apple, banana, orange, 'banana mango' in a column. When i use *e it should display apple as 'e' is the last letter. Or when I search "b* m*" it should display 'banana mango'. Is there anyway to do this? Thanks.
This discussion has been closed.
Replies
http://datatables.net/api#fnFilter
http://datatables.net/examples/api/regex.html
So to use regex, you'll need to build up your own regex and then call fnFilter with DataTables' smart filtering turned off (as described in the documentation).
Allan