MiscUtilsOnStringExtension extension

on

Methods

replaceLast(Pattern from, String replace, [int startIndex = 0]) String
Replaces the last occurrence of from with replace starting at startIndex.
splitByLastOccurrenceOf(String separator) List<String>
truncToLength(int length) String
Truncates the string to the given length.
withNormalizedWhitespace([String replace = ' ']) String
Replaces all whitespace characters with replace.