Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSRegularExpressionMBS class.

NSRegularExpressionMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Regular Expressions MBS MacCocoa Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read only property)

NSRegularExpressionMBS.numberOfCaptureGroups as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Regular Expressions MBS MacCocoa Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the number of capture groups in the regular expression.

A capture group consists of each possible match within a regular expression. Each capture group can then be used in a replacement template to insert that value into a replacement string.
This value puts a limit on the values of n for $n in templates, and it determines the number of ranges in the returned NSTextCheckingResultMBS instances returned in the match... methods.
An exception will be generated if you attempt to access a result with an index value exceeding numberOfCaptureGroups-1.
(Read only property)

NSRegularExpressionMBS.options as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Regular Expressions MBS MacCocoa Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the options used when the regular expression option was created.

The options property specifies aspects of the regular expression matching that are always used when matching the regular expression. For example, if the expression is case sensitive, allows comments, ignores metacharacters, etc. See constants for a complete discussion of the possible constants and their meanings.
(Read only property)

NSRegularExpressionMBS.pattern as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Regular Expressions MBS MacCocoa Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the regular expression pattern.

(Read only property)

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...