public static StreamEx < String > split ( CharSequence str , Pattern pattern ) { if ( str . length ( ) == 0 ) return of ( "" ) ; return new StreamEx <> ( pattern . splitAsStream ( str ) , StreamContext . SEQUENTIAL ) ; }
Creates a stream from the given input sequence around matches of the given pattern .