Created
October 23, 2020 15:08
-
-
Save tkausch/2c3fe33164aaf0bbc0cbe92e3a0bc425 to your computer and use it in GitHub Desktop.
How to run case insensitive search of string in another
This file contains 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
if let range3 = string.range(of: "rain", options: .caseInsensitive) { | |
// match | |
} else { | |
// no match | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment