Splitting on composite separators

Apologies for asking a question to which the answer might be buried in the reference documents. It's just that the answer is sometimes hard to find...

I want to split a string slice on separators that consist of any number of spaces and line feeds. How to do?

Maybe this method is useful to you: str - Rust

there is also a version that only looks for ascii whitespace: str - Rust

1 Like

That does the trick! Thanks a lot.