semoro
10/08/2016, 10:45 PMval regex = "([A-z]+\\s)+".toRegex()
regex.findAll("A B C D E F ").forEachIndexed {
i, matchResult ->
println("$i, ${matchResult.groupValues}")
}
Output:
0, [A B C D E F , F ]
So I'am unable to get all values of group if it repeatable