版权声明:大家好,我是笨笨,笨笨的笨,笨笨的笨,转载请注明出处,谢谢! https://blog.csdn.net/jx520/article/details/83341518
//提取最后一个部分
string $temp ="L_Hand_skJoint1|L_Wrist_skJoint|L_HandIndexBasic_skJoint|L_HandIndex1_skJoint";
match "[^|]*$" $temp;
//去掉_grp后缀
$temp = "L_Hand_skJoint1_grp";
match "^.*[^_grp]" $temp;
//去掉任意后缀 标示符为下划线:_
$temp = "L_Hand_skJoint1_gxvxd^@)(*%$@005341rpsdf";
substitute "_[^_]*$" $temp "";
//=============================================================================================
$temp = "目标字符串L_test_HandIndex2_skJoint目标字符串目标字符串";
//去掉尾部 字符串
match(".*[^(目标字符串)]", $temp);
substitute "[(目标字符串)]*$" $temp "";
substitute "(目标字符串)*$" $temp "";
//去掉所有 字符串
substituteAllString($temp, "目标字符串", "");