swift check if string is starting with 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 ...