String
struct String
-
Matches string using regular expression. The instance itself must be a valid regex pattern
Parameter
Parameter string: String to validateReturns
trueif value matches the regex elsefalseDeclaration
Swift
public func matchesString(_ string: String) -> BoolParameters
stringString to validate
Return Value
trueif value matches the regex elsefalse
String Extension Reference