Contents

matches(of:)

Returns a collection containing all matches of the specified regex.

Declaration

func matches<Output>(of r: some RegexComponent) -> [Regex<Output>.Match]

Return Value

A collection of matches of regex.