Created
May 19, 2021 09:34
-
-
Save thatswiftguy/d82c2135901d4d9babab00ab94be40e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pass = NSPredicate(format: "SELF MATCHES %@ ", "^(?=.*[a-z])(?=.*[$@$#!%*?&])(?=.*[A-Z]).{6,}$") | |
pass.evaluate(with: "SomStrin&&") // true | |
pass.evaluate(with: "nononnsdf") // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment