StringExtension extension

on

Methods

capitalise() String
Capitalises the first letter of this and returns that value.
endsWithOneOf(Iterable<String> iterable) bool
Checks whether some element in the iterable ends with this string.
matchAll(Iterable<String> values) Iterable<RegExpMatch>
Finds the indices of the start of all the matches of all the provided values.
removeExtraSpace() String
Removes most of the whitespace within the string.
replaceLast(Pattern from, String to, [int endIndex]) String
Returns a new string in which the last occurrence of from in this string is replaced with to, going back from at endIndex:
splitByAll(Iterable<String> delimiters) Iterable<String>
Splits this by all the provided delimiters.
splitFirst(String pattern) List<String>
Splits the string by the first occurence of the provided pattern.
splitLast(String pattern) List<String>
Splits the string by the last occurence of the provided pattern.
startsWithOneOf(Iterable<String> iterable) bool
Checks whether some element in the iterable starts with this string.