我正在尝试复制我在 javascript 中所做的事情matchAll()
const names = [
...withoutSlashes.matchAll(/(?<=Pos\. \d+ \- )(.*?)(?=","Importe)/g),
];
我看到原因有Js.String.match
,但我找不到 matchAll。我想这是因为 matchAll 是一个较新的 ecmascript。
任何关于哪个是进行高性能 matchAll 的好方法的提示?还是我缺少特定的原因功能?