fun split(input: CharSequence, limit: Int = 0): List<String>
fun split(input: CharSequence, limit: Int): List<String>
Splits the input CharSequence around matches of this regular expression.
limit
- Non-negative value specifying the maximum number of substrings the string can be split to. Zero by default means no limit is set.
Splits the input CharSequence around matches of this regular expression.
limit
- Non-negative value specifying the maximum number of substrings the string can be split to. Zero by default means no limit is set.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-regex/split.html