I've been trying to make search in datatables to search for full string, not substring of that string.
I have usernames: Ivan Test and Test Usiver If I search for "iv" or "Iv" result I would expect is only "Ivan Test", but I get both users, as second user contains inside of his string "Test UsIVer"
I've tried with this:
$('#TablicaRacuni').DataTable().search($(this).val(), false, false, false);
and this
$('#TablicaRacuni').DataTable().search("^" + $(this).val() + "$", true, false, true).draw();
With second function there is bug as ^ and $ shows up on search input box like this:
All random combinations of true and false and can't get this to work exactly how I want.
Stock function to print table:
$('#TablicaRacuni').DataTable();
It doesn't have to be specific column search, I want all columns to be searchable for example If i input "d" I would expect all diesel bills and all users with "d" for first letter.

