matchEntire() Function
The matchEntire() function is used to match the entire given string against the pattern and returns an instance of MatchResult if the entire input string matches; null, otherwise.
Syntax:
fun matchEntire(input: CharSequence): MatchResult?
Kotlin program to demonstrate the example of matchEntire() function
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer