Group

public class Group

This class encapsulates a single capture group.

  • The range of the search string for this capture group of nil if this capture group did not participate in the match.

    Declaration

    Swift

    public private(set) lazy var range: Range<String.Index>? { get set }
  • The substring of the search string for this capture group of nil if this capture group did not participate in the match.

    Declaration

    Swift

    public private(set) lazy var subString: String? { get set }