Individual column regex?

Individual column regex?

cdetermancdeterman Posts: 2Questions: 1Answers: 0
edited September 2014 in Free community support

For a bit of background, this questions stems from my work with the RStudio Shiny package which utilizes datatables 1.10.x. Most components work wonderfully; however, after speaking with one of the shiny developers I believe I have stumbled upon something that requires expertise from here. As implied in the question, I am trying to be able to use regex in the individual columns. The general search supports regex but I can't seem to use it to filter multiple columns (possibly lack of regex expertise). Ideally I would have preferred to use yadcf but I cannot seem to get that plugin to work with shiny either. As such, the regex seems to be the most simple approach if I can go by each column.

Given a table of 5 columns, we were expecting the following to work but regex still doesn't work on the individual column basis. Any insight would be sincerely appreciated.

$('#example').DataTable({
"search": { "regex": true },
"columnDefs": [{ "search": { "regex": true }, "targets": [0, 1, 2, 3, 4] }]
});
This discussion has been closed.