JAVA通过正则表达式验证输入的数据为2-5个汉字该怎么写?

日期:2011-12-12 14:36:13 人气:1

JAVA通过正则表达式验证输入的数据为2-5个汉字该怎么写?

String regex = "^[\u4e00-\u9fa5]{2,5}"
    A+
热门评论