class NSRegularExpression : NSObject, NSCopying, NSSecureCoding

An extension of NSRegularExpression to allow it to be initialized from a RegularExpression BSONValue.

  • Initializes a new NSRegularExpression with the pattern and options of the provided RegularExpression. Note: NSRegularExpression does not support the l locale dependence option, so it will be omitted if set on the provided RegularExpression.



    public convenience init(from regex: RegularExpression) throws