Regular expressions

You can use Java built-in classes Pattern and Matcher.

Kotlin introduces additional types like Regex for working with regular expressions. It uses kotlin.text.MatchResult that may be confused with java.util.regex.MatchResult.

Code example

Follow link to read common regular expression syntax.