CaptureGroup

public struct CaptureGroup : Codable, Equatable

CaptureGroup.

  • 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 CaptureGroup with member variables.

    Declaration

    Swift

    public init(
        group: String,
        location: [Int]? = nil
    )

    Parameters

    group

    A recognized capture group for the entity.

    location

    Zero-based character offsets that indicate where the entity value begins and ends in the input text.

    Return Value

    An initialized CaptureGroup.