常用正则

1.正数含小数

/^[0-9]+([.]{1}[0-9]+){0,1}$/

2.字母

/^[a-zA-Z]*$/

3.汉字

/^[u4e00-u9fa5]*$/

原文地址:https://www.cnblogs.com/gaocong/p/7966627.html