【问题标题】:Missing backslash symbol as with the right curly bracket however the thing works as with the left curly bracket of json file in snippet缺少与右花括号一样的反斜杠符号,但是事情与片段中 json 文件的左花括号一样
【发布时间】:2021-07-25 11:14:03
【问题描述】:

如果一个json文件的sn-p的body是

"\\left\\{"

那么它的返回值为\left\{

如果另一个身体是

"\\right\\}"

那么它的返回值为\right}

我希望 \right\} 作为返回值。

如何实现?

【问题讨论】:

  • 这会给你你想要的:\\right\\\\} 但是为什么你所拥有的不起作用?...添加一个空格使这个工作:\\right\\ } 我认为有一个正则表达式错误sn-p 引擎。

标签: json code-snippets vscode-snippets


【解决方案1】:

"\\right\\\\}"

而不是

"\\right\\}"

获取\right}

的返回值

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多