I wanted to follow this tutorial to learn about NSRegularExpression
in Swift
, but it has not been updated to Swift 3
. When I open the playground with the examples they provide, I get several errors being one of them the call:
let regex = NSRegularExpression(pattern: pattern, options: .allZeros, error: nil)
I've seen that now that initializer throws an exception so I changed the call, but that .allZeros
does not seem to exist anymore. I don't find any tutorial or example with an equivalent of that in Swift 3
, could somebody tell me what option should now replace such .allZeros
option?