我想要匹配以下字符串,并将其分解为数组
var str = "A123456 some text F unwaned text blabla A123457 another text string F";变成这样的事情
["A123456 some text F", "A123457 another text string F"]发布于 2014-02-08 07:45:25
var str = "A123456 some text F unwaned text blabla A123457 another text string F";
str.match(/A.*?F/g)
// => ["A123456 some text F", "A123457 another text string F"]https://stackoverflow.com/questions/21643420
复制相似问题