fengrengui

导航

正则表达式,字符串提取

string pattern ="";
Regex r=New Regex(pattern,RegexOptions.Multiline);
MatchCollection mc=r.Matches(WebpageSourceCode);

我相从网页source code中提取这些信息:以<a href="personen.d4w开头到第一个</tr>结束,网页中可能多个这样的字符串。提取之后,存到mc中:

我对正则表达式是没有一点研究的,请问第一行的那个pattern应该怎么写?

posted on 2006-08-15 20:33  阿贵  阅读(572)  评论(2)    收藏  举报