【发布时间】:2020-08-07 14:50:03
【问题描述】:
如何使用正则表达式获取 ${} 封闭值内的内容,例如:
Dont care about this. ${This is the thing I want regex to return} Not this either.
应该返回:
This is the thing I want regex to return
我试过 \${ }$ 我在 regex101.com 上得到的最好的东西 老实说,就正则表达式而言,我不知道自己在做什么
在 c++ 上使用,但也(如果可能)喜欢在 geany 文本编辑器中使用
【问题讨论】:
标签: c++ regex curly-braces dollar-sign