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

            }

        }

  • 相关阅读:
    ssh 远程命令
    POJ 2287
    POJ 2376
    hihoCoder1488
    POJ1854
    HDU 5510
    HDU 4352
    CodeForces 55D
    HDU 1517
    CodeForces 1200F
  • 原文地址:https://www.cnblogs.com/qizhuo/p/7904262.html
Copyright © 2011-2022 走看看