在我正在编写的Visual Studio代码片段中,我想将蛇案例字符串转换为驼峰案例.
从文档我知道语法是
'regex'
所以我想出了这个:
'format'
然而,此代码仅适用于具有2个元素的字符串(例如"carrot_cake"),而我希望处理具有任意数量元素的字符串("blueberry_pie_with_a_cup_of_coffee").
我想在'regex'和中需要某种递归'format',但我不知道该怎么做.
如何匹配任意数量的模式出现?
regex camelcasing visual-studio-code vscode-snippets
camelcasing ×1
regex ×1
visual-studio-code ×1
vscode-snippets ×1