const r
const word = document.getElementById("searchedWord").value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // Find words - global match and case insensitive // Divide 2 or more words from input by space const r = new RegExp("(" + word + ")", "ig"); $(searchInElements).each(function (i, el) { if ($(this).text().match(r)) { showElement(el) } });
const r = new RegExp("(" + word.replace(/\s+/g, "|") + ")", "ig");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)