\w : 是匹配数字和字母下划线的多个字符
\W : 是匹配除数字,字母下划线以外的
\w+ : 至少出现一位以上
image.png
image.png

校验单个字符的正则:

image.png
image.png