1。判断字符串中含有句点个数:
string a = @"\."; //一定要转义
int b = Regex.Matches("lls.ds.jpg", b).Count;
context.Response.Write(fileName+"<br />"+b);
1。判断字符串中含有句点个数:
string a = @"\."; //一定要转义
int b = Regex.Matches("lls.ds.jpg", b).Count;
context.Response.Write(fileName+"<br />"+b);