KT-20357 Add sample code for Regex.find
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
This commit is contained in:
@@ -47,6 +47,7 @@ expect class Regex {
|
||||
*
|
||||
* @param 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.
|
||||
* @sample samples.text.Regexps.find
|
||||
*/
|
||||
fun find(input: CharSequence, startIndex: Int = 0): MatchResult?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user