Blogger Information
Blog 9
fans 0
comment 0
visits 6143
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
正则关于面试常遇到的问题
自己做笔记用的
Original
431 people have browsed it

   1.匹配邮箱

    /\w+@([a-zA-Z0-9-]+.){1,2}(com|cn|org|gov.cn|net|edu.cn)/

    /\w+@([a-zA-Z0-9-]+.){1,2}(com|cn|org|edu.cn|net|ogv.cn)/

    2.匹配手机号

    /^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9]))\\d{8}$  简单做法

    3.匹配一个网址

    待完善

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post