contains(_:)
Returns a Boolean value indicating whether the collection contains the given regex.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
func contains(_ regex: some RegexComponent) -> Bool
Parameters
- regex
A regex to search for within this collection.
Returns
true
if the regex was found in the collection, otherwise false
.