splitWithDelim method

List<String> splitWithDelim(
  1. RegExp pattern
)

Split a String with a certain pattern, but keep the delimiters.

Implementation

List<String> splitWithDelim(RegExp pattern) =>
    pattern.allMatchesWithSep(this);