正则表达式,字符串提取
string pattern ="";
Regex r=New Regex(pattern,RegexOptions.Multiline);
MatchCollection mc=r.Matches(WebpageSourceCode);
我相从网页source code中提取这些信息:以<a href="personen.d4w开头到第一个</tr>结束,网页中可能多个这样的字符串。提取之后,存到mc中:
我对正则表达式是没有一点研究的,请问第一行的那个pattern应该怎么写?
浙公网安备 33010602011771号