特地记录一下:
const pattern = "#\{(?:(?<name>\w+):(?<paras>(?:\w+='\w+',?)*))(?:/\}|\}(?<snippet>(?:[^{]|(?!\{\w+])|(?R))+)\{end\})$#m";
当然,今年只谈风月,不谈技术.
原文链接:https://www.f2er.com/regex/363217.html特地记录一下:
const pattern = "#\{(?:(?<name>\w+):(?<paras>(?:\w+='\w+',?)*))(?:/\}|\}(?<snippet>(?:[^{]|(?!\{\w+])|(?R))+)\{end\})$#m";
当然,今年只谈风月,不谈技术.
原文链接:https://www.f2er.com/regex/363217.html