CaptureGroup
public struct CaptureGroup : Codable, Equatable
A recognized capture group for a pattern-based entity.
-
A recognized capture group for the entity.
Declaration
Swift
public var group: String -
Zero-based character offsets that indicate where the entity value begins and ends in the input text.
Declaration
Swift
public var location: [Int]? -
Initialize a
CaptureGroupwith member variables.Declaration
Swift
public init( group: String, location: [Int]? = nil )Parameters
groupA recognized capture group for the entity.
locationZero-based character offsets that indicate where the entity value begins and ends in the input text.
Return Value
An initialized
CaptureGroup.
View on GitHub
CaptureGroup Structure Reference