trimmingPrefix(_:)
Returns a new collection of the same type by removing the initial elements that matches the given regex.
Declaration
func trimmingPrefix(_ regex: some RegexComponent) -> Self.SubSequenceParameters
- regex:
The regex to remove from this collection.
Return Value
A collection containing the elements that does not match regex from the start.