首页 > 解决方案 > 使用气体的 Google RE2 正则表达式

问题描述

我需要搜索以 { 开头并以 } 结尾的文本 请注意,仅当此处存在 {=CAT some text} 而不是 {some other text} 时才需要搜索

我使用 Google Apps 脚本查找文本

text.findText("{=CAT.*}")

标签: regexgoogle-apps-scriptgoogle-docs-api

解决方案


推荐阅读