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