09 2014 档案
正则表达式,Regex类
摘要:C#regex是正则表达式类用于string的处理,查找匹配的字符串。1,先看一个例子Regex regex=new Regex(@”OK“);//我们要在目标字符串中找到"OK"Match m=regex.Match("fjsladfOK");console.writeline(m.tostrin... 阅读全文
posted @ 2014-09-11 18:04 Bluehand 阅读(640) 评论(0) 推荐(0)