firstMatch(of:)
Returns the first match of the specified regex within the collection.
Declaration
func firstMatch<Output>(of r: some RegexComponent) -> Regex<Output>.Match?Return Value
The first match of regex in the collection, or nil if there isn’t a match.