我怎样才能对诸如/ com / app1 / main之类的字符串进行子字符串化以获取HELM模板中main的值?
您可以在头盔中使用regexFind函数
regexFind "[^/]+$" "/com/app1/main"
将得到最后的文本 /
/