unicode编码[\u4e00-\u9fa5]匹配所有中文
"u4e00"代表什么意思 "u9fa5“代表什么意思?
答:\u4e00-\u9fa5是用来判断是不是中文的一个条件,采用的是unicode编码
查了下中文的unicode的中文编码表
![unicode编码[\u4e00-\u9fa5]婚配所有中文](http://img.reader8.net/uploadfile/jiaocheng/20140140/2714/2014012721141925955.png)
第一个“4e00”
![unicode编码[\u4e00-\u9fa5]婚配所有中文](http://img.reader8.net/uploadfile/jiaocheng/20140140/2714/2014012721141925956.png)
最后一个“9fa0”
总共有20901个汉字,中国文化果然博大精深啊。
附中文编码表下载
http://download.csdn.net/detail/s_jobs/4786519
有关中文编码的知识可以参考
http://blog.csdn.net/s_jobs/article/details/8197974