Swift prüfen, ob Regex in String ist

if string.range(of: regex, options: .regularExpression, range: nil, locale: nil) != nil ...
Pleasant Partridge