swift string contains regex code example
Example: swift check if regex is in string
if string.range(of: regex, options: .regularExpression, range: nil, locale: nil) != nil ...
if string.range(of: regex, options: .regularExpression, range: nil, locale: nil) != nil ...