Multiple search on a single column which has '*'
Multiple search on a single column which has '*'
cloudcomdevs
Posts: 2Questions: 1Answers: 0
I have a column which has "Y", "N" and '<<asterisk >>' as data. I want to do a search/filter on this column which contains 'Y' & '<<asterisk >>'. How can I do that?
This discussion has been closed.
Answers
One way is to use the regex option of the
/search()
API.Kevin
I am using the regex option, it works for other characters but with asterisk its failing
'*' is a regex token. You would need to escape it with
`. If this doesn't help then please put together a simple test case showing your data and search. We can then help figure out what you need.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin