kotlin-stdlib / kotlin.text / java.util.regex.Pattern Extensions for java.util.regex.Pattern JVM 1.0 toRegex Converts this java.util.regex.Pattern to an instance of Regex. fun Pattern.toRegex(): Regex