日期:2014-05-17 浏览次数:20802 次
string a =".aa(/w)"; string b=".aa(.aa(cc))"; string c="你需要判断的文本"; string str; if (regex.ismatch(c,a)==true) str=c.regex.replace("(","[").replace(")","]"); if (regex.ismatch(c,b)==true) str=c.regex.replcae(("(","[").replace(")","]");
引用:C# code?1string a =".aa(/w)"; string b=".aa(.aa(cc))"; string c="你需要判断的文本"; string str; if (regex.ismatch(c,a)==true) str=c.regex.replace("(","[").replace(")","]"); if ……