Swift Check If Regex Is In String

[Solved] Swift Check If Regex Is In String | Swift - Code Explorer | yomemimo.com
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

Answers related to swift check if regex is in string

Code Explorer Popular Question For Swift