Created
August 25, 2017 01:52
-
-
Save djtech42/c7d489967805241314a28b84c914453b to your computer and use it in GitHub Desktop.
Swift Regular Expression Checks Using Pattern Matching RegexPattern
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
struct RegexPattern { | |
let pattern: String | |
let options: NSRegularExpression.Options | |
init(_ pattern: String, options: NSRegularExpression.Options) { | |
self.pattern = pattern | |
self.options = options | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment