Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从我的 json %msg 替换起始大括号
说 %msg 评估为:
{ "key1": "val1", "key2":"val2" }
一旦被替换,我希望它变成:
"key1": "val1", "key2":"val2" }
我尝试使用该模式:
%replace{%msg}{\{}{}
但这不起作用。
如果要替换为空字符串,请使用它。用方括号包裹你的图案。
%replace{%msg}{[\{]}{}
该文档包含一些有关正则表达式模式的有用信息。