匹配数字
preg_match("/^d*$/", "4312")
匹配字母
preg_match("/^[a-z]*$/i", "4312")
匹配有数字有字母
preg_match("/^[a-zd]*$/i", "fd4fd34")
匹配中文
preg_match("/^[\x7f-\xff]+$/", "fd4fd34")
匹配数字
preg_match("/^d*$/", "4312")
匹配字母
preg_match("/^[a-z]*$/i", "4312")
匹配有数字有字母
preg_match("/^[a-zd]*$/i", "fd4fd34")
匹配中文
preg_match("/^[\x7f-\xff]+$/", "fd4fd34")