this is an example of the regex using datatables that I like.
e.g. enter ^[S,A]
in the global search and tick Treat as regex
and this gives all the Columns that Start with A
or S
and this is what I want to achieve.
not quiet sure how Use smart search
works
And this is the server side processing example
here is a basic datatables fiddle
Can I combine these so that I can do a regex in datatables that works on the server side processing?
As a first I have tried something like this on my db but not sure if it can be done here before trying to do it in datatables.
SELECT employee_name, employee_salary, employee_age FROM employee WHERE employee_name LIKE REGEXP '^[A,S]'