LeavingMe.net

中文正则

2011-07-01 19:55:00

var reChinese = /^[\u4e00-\u9fa5]+$/; //中文名
var reEnglish = /^[A-Za-z]+([\s]?[A-Za-z]+)*$/i; //英文名
comments powered by Disqus