toRegex
Converts the string into a regular expression Regex with the default options.
Since Kotlin
1.2Converts the string into a regular expression Regex with the specified single option.
Since Kotlin
1.2Converts the string into a regular expression Regex with the specified set of options.
Since Kotlin
1.2Converts this java.util.regex.Pattern to an instance of Regex.
Provides the way to use Regex API on the instances of java.util.regex.Pattern.