kotlin.text.Regex.find

find

fun find(
    input: CharSequence, 
    startIndex: Int = 0
): MatchResult?

Returns the first match of a regular expression in the input, beginning at the specified startIndex.

Parameters

startIndex - An index to start search with, by default 0. Must be not less than zero and not greater than input.length()

Return An instance of MatchResult if match was found or null otherwise.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部