日期:2014-05-18 浏览次数:20539 次
using System.Text.RegularExpressions;
protected void Button2_Click(object sender, EventArgs e)
{
string xx = this.TextBox1.Text.Trim();
Regex.Replace("xx", "%Code%?", "4", RegexOptions.IgnoreCase);
Regex.Replace("xx", "%Rname%", "3", RegexOptions.IgnoreCase);
Regex.Replace("xx", "%Linkman%", "2", RegexOptions.IgnoreCase);
Regex.Replace("xx", "%Email%", "1", RegexOptions.IgnoreCase);
Response.Write(xx);
}