RegexExpressionMatcher
Matcher is responsible for matching expressions that contains regular expressions.
-
Expression pattern with regular expression inside.
Declaration
Swift
let pattern: RegexPattern -
Initializes matcher.
Declaration
Swift
init(pattern: RegexPattern)Parameters
patternExpression pattern with regexp inside.
-
Validates value by matching it to the pattern it contains.
Declaration
Swift
func validate(val: String) -> BoolParameters
valvalue that will be matched.
Return Value
trueif value matches pattern, otherwisefalse.
View on GitHub
RegexExpressionMatcher Struct Reference