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
pattern
Expression pattern with regexp inside.
-
Validates value by matching it to the pattern it contains.
Declaration
Swift
func validate(val: String) -> Bool
Parameters
val
value that will be matched.
Return Value
true
if value matches pattern, otherwisefalse
.