标签: regex vim greedy regex-greedy
如何通过匹配大括号进行搜索和替换?
例如i / p:
{\sc This is {very} hard for {me} to} code. this is just an {example}
必填o / p:
This is {very} hard for {me} to
我使用了这段代码。但未能得到那个
%s/{\\sc\s*\([^}]*\)}/\1/gec