Contents

contains(_:)

Returns a Boolean value indicating whether the collection contains the given regex.

Declaration

func contains(_ regex: some RegexComponent) -> Bool

Parameters

  • regex:

    A regex to search for within this collection.

Return Value

true if the regex was found in the collection, otherwise false.