凑合
正则表达式匹配末尾数字并+1后替换
正则表达式匹配末尾数字并+1后替换在做unity3d的⼀个增强⼯具,⽤到了下有需要的朋友凑合看,go.name是string类型go.name = Selection.activeGameObject.name;Regex rex = new Regex(@"\d{1,}", RegexOptions.RightToLeft);var result = rex.Match(go.name);if...
正则表达式匹配末尾数字并+1后替换在做unity3d的⼀个增强⼯具,⽤到了下有需要的朋友凑合看,go.name是string类型go.name = Selection.activeGameObject.name;Regex rex = new Regex(@"\d{1,}", RegexOptions.RightToLeft);var result = rex.Match(go.name);if...