findAll

fun findAll(input: CharSequence, startIndex: Int = 0): Sequence<XMatchResult>(source)

Returns a sequence of all occurrences of a regular expression within the input string, beginning at the specified startIndex.

Throws

if startIndex is less than zero or greater than the length of the input char sequence.

Samples

samples.text.Regexps.findAll