Hi Allan,
I was checking how the global filter of a jQuery Datatable works. I entered a filter criteria as 'il oh'. I was then going through the jQuery library file and found that _fnFilterCreateSearch creates a regular expression of the form ^(?=.*?il)(?=.*?oh).*$
This seems to do an AND search over the table data i.e. all the rows containing both 'il' and 'oh' were rendered. I wanted to know how we can modify this regex pattern in order to do an OR search i.e. all the rows containing either 'il' or 'oh' should be rendered.
I was checking how the global filter of a jQuery Datatable works. I entered a filter criteria as 'il oh'. I was then going through the jQuery library file and found that _fnFilterCreateSearch creates a regular expression of the form ^(?=.*?il)(?=.*?oh).*$
This seems to do an AND search over the table data i.e. all the rows containing both 'il' and 'oh' were rendered. I wanted to know how we can modify this regex pattern in order to do an OR search i.e. all the rows containing either 'il' or 'oh' should be rendered.