, '$1'); $(o).html(h); // while(result = reg.exec(h)){ // var kw = result[0]; // h = h.replace(kw,''+kw+''); // $(o).html(h); // }; }) $('.u-sm').each(function (i, o) { var h = $(o).html(); h = h.replace(reg, '$1'); $(o).html(h); }) }; replaceK();