Text Input
function checkRE() { if (inp.value) { const exp = new RegExp(arrPattern,'g'); const str = "$&"; let firstFind =inp.value.replace(exp, str); const exp2 = new RegExp(strPattern,'g'); const str2 = "$&"; out.innerHTML = firstFind.replace(exp2,str2); } }