var target = 'abcdefg12345hijklmn'; target.replace(/[0-9]+/, function(p1) { return '<span class="number">' + p1 + '</span>'; });
0 件のコメント:
コメントを投稿