私はこれを持っています
<tr><td>other</td><td>mytest</td></tr>
<tr><td>other</td><td>mytest</td></tr>
<tr><td>other</td><td>mytest</td></tr>
<tr><td>other</td><td>mytest</td></tr>
<tr><td>other</td><td>mytest</td></tr>
最後の td 内のテキストを次のように置き換えたい
<span>mytest</span>
私はこれを試していますが、ラップしtd
ませんtext
var r2 = new RegExp("mytest", 'i');
$(" tbody td").filter(function(){
return $(this).text().replace(/\s/g, "").match(r2) }
).wrap('<span class="label-success"></span>');