2013-07-18
用于string的处理,查找匹配的字符串。1,先看一个例子Regex regex=new Regex(@OK);//我们要在目标字符串中找到"OK"Match m=regex.Match("fjsladfOK");console.writeline(m.tostring());//这是查找OK//结果是:OK2,Regex regex=new Regex(@"\d+");// \d+是代表数字Match m=regex.Math("jflsadkj 98");console.writeline(m.tostring);/...