我如何删除一个特定的“;顺序;来自Javascript字符串?

我如何删除一个特定的“;顺序;来自Javascript字符串?,javascript,regex,Javascript,Regex,我有一个字符串,如下所示: Well, here we are.^2000 Ain't much to look at, is it?^2000 Came here on a Wednesday night once.^1000 It was actually pretty crowded.^1000 But on a Tuesday evening .^300 .^300 .^1000 I guess it's just you^1000 and me.^3000 Heh. 现在我想知道如何

我有一个字符串,如下所示:

Well, here we are.^2000 Ain't much to look at, is it?^2000 Came here on a Wednesday night once.^1000 It was actually pretty crowded.^1000 But on a Tuesday evening .^300 .^300 .^1000 I guess it's just you^1000 and me.^3000 Heh.
现在我想知道如何删除所有
^
^
后面的数字,以便它最终输出以下内容

Well, here we are. Ain't much to look at, is it? Came here on a Wednesday night once. It was actually pretty crowded. But on a Tuesday evening . . . I guess it's just you and me. Heh.

正如我在评论中所说,你想使用一种叫做。
$(文档).ready(函数(){
var html=$('#start').html();
var output=html.replace(/(\^\d{2,4})/g';
$('#results').html(输出);
});

嗯,我们到了。^2000没什么好看的,是吗?^2000有一次是在一个星期三晚上来的。^1000实际上很拥挤。^1000但是在一个星期二晚上。^300。^300。^1000我想只有你^1000和我。^3000呵呵。
使用以下方法:

var res = str.replace( new RegExp("(\\^\\d+)","gm"), "");
其中
str
是字符串,正则表达式匹配
^
,替换字符串是您要使用的
“”