kotlin.text.MatchResult.groupValues

groupValues

abstract val groupValues: List<String>

A list of matched indexed group values.

This list has size of groupCount + 1 where groupCount is the count of groups in the regular expression. Groups are indexed from 1 to groupCount and group with the index 0 corresponds to the entire match.

If the group in the regular expression is optional and there were no match captured by that group, corresponding item in groupValues is an empty string.



fun main(args: Array<String>) {
//sampleStart
//Missing function name in @sample
//sampleEnd
}

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-match-result/group-values.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部