regex to match swift type 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 ...