Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 624 Bytes

regex.md

File metadata and controls

25 lines (21 loc) · 624 Bytes

Regex Searching

DataTables has the ability to perform search using regular expressions.

Regex search only works and tested on the following Laravel DB drivers: MySQL, SQLite and Oracle.

To enable regex, you need to explicitly set it on your javascript:

$('#example').dataTable({
	processing: true,
    serverSide: true,
    ajax: '',
    columns: [
        {data: 'id', name: 'id'},
        {data: 'name', name: 'name'},
        {data: 'email', name: 'email'},
        {data: 'created_at', name: 'created_at'},
        {data: 'updated_at', name: 'updated_at'}
    ],
  	search: {
    	"regex": true
  	}
});