javascriptで正規表現(後方参照) コメントを残す これいいですね。 便利。IE6でも動きました。 マッチした文字を抜き出す正規表現。 var str = 'あ111あ'; str.match(/(\d+)/); // 取得 output.text( RegExp.$1 );// 111