1
我有一个字符串如下:如何从Javascript字符串中删除特定的“序列”?
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.
你想使用[Regex](http://www.regular-expressions.info/tutorial.html)。 – Jhecht