我想获取匹配短语后的下一个单词。
等。 - 我想改变我的疼痛阈值
--“改变我的***”
let text = "I want to change my pain threshold"
let firstTriggerregEx = "(?:\\b|')(change my)(?:\\b|')";
const found2 = text.match(firstTriggerregEx);
console.log(found2);
这将返回匹配项,但不返回后面的单词
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号