字符串中含有某些字符 假如字符串 S7+S7-S7*那我要怎么判断 S7+ 在上面的字符串里面有自己的函数吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string str="S7+S7-S7";if(str.contains("S7+")){ Response.write("包含S7+");} 不知道有没有//a = "S7+S7-S7*";//b =”S7+“protected bool IsContains(string a,string b){if (a.Replace(b)==a) return true;else return false;} 反了//a = "S7+S7-S7*";//b =”S7+“protected bool IsContains(string a,string b){if (a.Replace(b)==a) return false; else return true; } string a; string b; if(a.IndexOf(b)!=-1) { Response.write("包含S7+"); } string aa = "S7+S7-S7*"; if(aa.IndexOf("s7+")!=-1) Response.writh("包含") asp.net 中如何统计邮件到达率,打开率! Dropdownlist闪得历害! 索引和长度必须引用该字符串内的位置 怎么用正则表达式实现如下替换和逆反操作 大家遇没遇到过这样的Session问题??? 一个关于发送邮件的问题!!!!急!!!! 如何使用OWC对已存在的EXCEL文件进行编辑? 跪求,急需!!!!!! ASP如何读MySql中的blob字段中的文本? .net数据库连接有多少?? ajax问题 有一个分页的DLL 怎么用?
if(str.contains("S7+"))
{
Response.write("包含S7+");
}
//b =”S7+“
protected bool IsContains(string a,string b){
if (a.Replace(b)==a)
return true;
else
return false;
}
//b =”S7+“
protected bool IsContains(string a,string b){
if (a.Replace(b)==a)
return false;
else
return true;
}
string a;
string b;
if(a.IndexOf(b)!=-1)
{
Response.write("包含S7+");
}
if(aa.IndexOf("s7+")!=-1)
Response.writh("包含")