Fixes NSRegularExpression initializer

It looks like the `regularExpressionWithPattern` class method no longer exists, and is instead an initializer method.