有关字符串匹配的方法

--去除字符串最后的字符[,]号

s1 = s1.Remove(s1.LastIndexOf(","), 1); //1为要删除的个数
原文地址:https://www.cnblogs.com/zhangjinpeng/p/4073195.html