通过正则格式化当前编辑的文件名,然后将匹配出来的每一项再对配置里的模板进行替换 Format the currently edited file name through regular format, and then replace the template in the configuration with each matched item 举例: 当前正在编辑的文件名是 通过正则
然后模板里配置了 最后再通过 replace() 方法,把模板里的 {数字} 全替换掉并插入到当前编辑光标处 Example: The file name currently being edited is Through regular
Then the template is configured with the substitution character '{1}', '{2}', where the numbers 1 and 2 are the subscripts of the regularly matched array. For example, the value of the results subscript 1 above is 2020 Finally, through the replace() method, the {number} in the template is replaced and inserted into the current edit cursor |