Kotlin String matches Function
The matches function in Kotlin is used to check if an entire string matches a specified regular expression. This function belongs to the String class in the Kotlin standard library and provides a straightforward way to perform pattern matching on a string.