usecases/object/string/split_preserving_separator library

Functions

splitPreservingSeparator(String text, Pattern separatorPattern) List<String>
Splits the input text into segments based on the specified delimiter pattern, while ensuring that each segment includes the delimiter at its end.