摘要:
^[\u4e00-\u9fa5]{1,20}$ 这个是 验证中文的正则表达式 System.Text.Encoding.Default.GetByteCount( strString );--返回字节数 //判断字符串是否是数字 string str1=this.textBox1.Text.Trim(); if(Regex.IsMatch(str1,@"^\d+$")) { MessageBox... 阅读全文
posted @ 2006-11-07 16:15 sunrack 阅读(222) 评论(0) 推荐(0)
浙公网安备 33010602011771号