zoukankan      html  css  js  c++  java
  • swift 密码由6-16数字和字母组合组成

    class func isPassword(pasword : String) -> Bool {

            let pwd =  "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$"

            let regextestpwd = NSPredicate(format: "SELF MATCHES %@",pwd)

            if (regextestpwd.evaluate(with: pasword) == true) {

                return true

            }else{

                return false

            }

        }

  • 相关阅读:
    centos 部署.NET CORE
    nginx 负载均衡
    graylog centos7 部署
    springboot 2.x centos 7.0 部署
    HashMap源代码阅读理解
    服务器安装redis
    java ---- gradle
    uboot-makefile总览
    makeFile
    Spring 推断构造方法
  • 原文地址:https://www.cnblogs.com/qizhuo/p/7904262.html
Copyright © 2011-2022 走看看