Multiple search on a single column which has '*'
Multiple search on a single column which has '*'
![cloudcomdevs](https://secure.gravatar.com/avatar/e231f8270caaacb85caa38fda95b7e11/?default=https%3A%2F%2Fvanillicon.com%2Fe231f8270caaacb85caa38fda95b7e11_200.png&rating=g&size=120)
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