以下代码是把所有邮件地址都删除了,如何是反向处理,就是把邮件地址都输出到 richTextBox2 string ori = "";
string newStr = ""; ori = richTextBox1.Text;
newStr = Regex.Replace(ori,@"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*","");
richTextBox2.Text = newStr;
string newStr = ""; ori = richTextBox1.Text;
newStr = Regex.Replace(ori,@"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*","");
richTextBox2.Text = newStr;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货