为什么在asp.net 2中这样的正则表达式出错 ^localhost ¦.+\..+\.com$¦.+\..+\.cn$¦.+\..+\.net$说在\. 这里错误无法识别的转义序列 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 嗯 没有报错啊. string strString = @"^localhost ¦.+\..+\.com$¦.+\..+\.cn$¦.+\..+\.net$"; string strFind = txtFind.Text; Regex r = new Regex(strFind); Match m = r.Match(strString); txtResult.Text = m.Value; 我直接用在验证控件上面,报错了如string regulardomail = "^localhost ¦.+\..+\.com$¦.+\..+\.cn$¦.+\..+\.net$";RegularExpressionValidatorDomain.ValidationExpression = regulardomail; 求ValidationExpression 域名 表达式要求可以localhostxxx.domain.com (net、com.cn、org、cn)这二种形式 string regulardomail = @"^localhost ¦.+\..+\.com$¦.+\..+\.cn$¦.+\..+\.net$"; 那位有Brettle.Web.NeatUpload永久使用的免费版本哦 关于图书馆系统的一个编译问题 求一段js。。。。 请教高手 安了微软的ajax1.0以后,客户端有那些脚本的智能感知吗? textbox如何控制样式?在线等 散分,前3楼和最后回帖的2个得分 怎样让网页在不扇动的情况下实现DataGrid中的一条记录自动更新 投票调查系统如何设计.... 按钮的问题 高分求可编写的下拉框 ~~~~~~~~~~ajax控件AutoComplete的Click事件可否进行二次开发?
string strFind = txtFind.Text; Regex r = new Regex(strFind);
Match m = r.Match(strString);
txtResult.Text = m.Value;
如
string regulardomail = "^localhost ¦.+\..+\.com$¦.+\..+\.cn$¦.+\..+\.net$";
RegularExpressionValidatorDomain.ValidationExpression = regulardomail;
要求可以
localhost
xxx.domain.com (net、com.cn、org、cn)
这二种形式