starts(with:)
Returns a Boolean value indicating whether the initial elements of the sequence are the same as the elements in the specified regex.
Declaration
func starts(with regex: some RegexComponent) -> BoolParameters
- regex:
A regex to compare to this sequence.
Return Value
true if the initial elements of the sequence matches the beginning of regex; otherwise, false.