SubstringFinder
public protocol SubstringFinder: MatchBehavior
A utility variation of RangeFinder, that returns Substring value instead of range
-
first(in:)
Default implementationget the first match as a substring
Default Implementation
Declaration
Swift
func first(in: String) -> Substring?