还是求一正则,大家帮帮忙
<tr> <td> 姓名: </td> <td> 宋志强 <a href= "WriteMail.asp?realname=宋志强&email=songzhiqiang198611@163.com "> <font class= "font10_red "> 留言给该校友> > </font> </a> </td> </tr>
取出 "&email= "后的email地址,我对正则一窍不通,麻烦大家了
[解决办法]
try
string result = " ";
Match m = Regex.Match(yourStr, @ "&email=(? <email> [^ " "> ]*) ", RegexOptions.IgnoreCase);
if (m.Success)
result = m.Groups[ "email "].Value;