Question : swift check if regex is in string
Answered by : pleasant-partridge-1m11p0rb4i5i
if string.range(of: regex, options: .regularExpression, range: nil, locale: nil) != nil ...
Source : https://stackoverflow.com/questions/29784447/swift-regex-does-a-string-match-a-pattern | Last Update : Thu, 17 Sep 20