SubstringFinder

public protocol SubstringFinder: MatchBehavior

A utility variation of RangeFinder, that returns Substring value instead of range

  • first(in:) Default implementation

    get the first match as a substring

    Default Implementation

    Declaration

    Swift

    func first(in: String) -> Substring?