How to search regex only outside curly brackets

前端 未结 2 1665
星月不相逢
星月不相逢 2021-01-26 09:12

I have this regex variable:

var regexp = new RegExp(RegExp.quote(myExpression) + \'\\\\b\', \'g\');

which searches for expression that has a sp

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-26 09:51

    One strategy would be to find/replace all {.*} with empty string... then find all the cats?

提交回复
热议问题