相关疑难解决方法(0)

正则表达式{{匹配

我需要匹配以下整个语句:

{{CalendarCustom|year={{{year|{{#time:Y}}}}}|month=08|float=right}}
Run Code Online (Sandbox Code Playgroud)

基本上每当有原始标签内部{需要有相应数量的}嵌入时{ }.所以例如{{match}}或者{{ma{{tch}}}}{{m{{a{{t}}c}}h}}.

我现在有这个:

(\{\{.+?(:?\}\}[^\{]+?\}\}))
Run Code Online (Sandbox Code Playgroud)

这不太奏效.

c# regex

7
推荐指数
1
解决办法
918
查看次数

标签 统计

c# ×1

regex ×1