摘要: C#:Regex rx = new Regex("^[\u4E00-\u9FA5]+$");if(rx.IsMatch(textbox1.text)){ 是汉字}else{ 不是汉字}js:function checkname(name){ var strExp=new RegExp(/^[\u4E00-\u9FA5]+$/);if(strExp.test(name)){ return true;}else{ return false;}} 阅读全文
posted @ 2013-01-28 11:39 yellowshorts 阅读(5546) 评论(0) 推荐(1)