Code
public static MatchCollection getAllHyperLinks(String text,String s,string e)
{
try
{
Regex rg = new Regex("(?<=(" + s + "))[.\\s\\S]*?(?=(" + e + "))", RegexOptions.Multiline | RegexOptions.Singleline);
MatchCollection matches=rg.Matches(text);
return matches;
}
catch (Exception ex)
{
return null;
}
}
posted @
2009-09-15 10:02
搜源网
阅读(
404)
评论()
编辑
收藏
举报