How can i inlude the use of latin chars like ČčĆ抚Đđ in this javascript regexp
var regex = new RegExp('\\b' + this.value, "i");
UPDATE:
I have this code for filtering checkbox label, but it doesnt work well when there is an input with Č č ć
function listFilter(list, input) {
var $lbs = list.find('.css-label');
function filter(){
var regex = new RegExp('\\b' + this.value);
var $els = $lbs.filter(function(){
return regex.test($(this).text());
});
$lbs.not($els).hide().prev().hide();
$els.show().prev().show();
};
input.keyup(filter).change(filter)
}
jQuery(function($){
listFilter($('#list'), $('.search-filter'))
})
here is a fiddle: DEMO