Instance Property

pattern

Returns the regular expression pattern.

Declaration

var pattern: String { get }

See Also

Getting the Regular Expression and Options

var options: NSRegularExpression.Options

Returns the options used when the regular expression option was created.

var numberOfCaptureGroups: Int

Returns the number of capture groups in the regular expression.