一个可以匹配【${}】的正则表达式

167 阅读1分钟

正则表达式

"【{orderNo}】餐品已准备好展示为".replace(/(?<=\u3010)\(?={[^${]*}\u3011)/g, '') 匹配结果 '【{orderNo}】餐品已准备好展示为'

image.png