« 命令行下导入mysql数据月木之上 »

C#正则表达式提取子匹配的方法

密陀僧发布 技术 2009年2月22日 次浏览
string ll="([\\S\\s]*?)";
Regex r = new Regex(ll); //定义组
   Match m = r.Match("解读 C# 中的正则表达式");

Response.Write(m.Groups[0].Value);



显示结果为" 解读 C# 中的正则表达式"

http://www.haoder.com/article.asp?id=16
转载请注明:转载自漱风斋[ http://0e2.net/ ]

本文链接地址:http://0e2.net/post/1157.html

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Copyright 2009-3000 0e2.net. Some Rights Reserved.  Powered By Z-Blog.