NSRegularExpression
extension NSRegularExpression
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 providedRegularExpression
. Note:NSRegularExpression
does not support thel
locale dependence option, so it will be omitted if set on the providedRegularExpression
.Declaration
Swift
public convenience init(from regex: RegularExpression) throws