如何去验证用户名和密码是由数字和字母构成的

WBOY
Release: 2016-06-13 10:26:12
Original
1058 people have browsed it

怎么去验证用户名和密码是由数字和字母构成的?
怎么去验证用户名和密码是由数字和字母构成的? 如果需要正则麻烦帮忙写下吧

------解决方案--------------------
/^[a-z0-9]+$/i
i忽略大小写,如果需要的下还要忽略换行

Related labels:
ii
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template