ghosalmartin
02/24/2021, 9:49 AMPattern
object to Regex
although given its a static I don’t think it’d make much of a differenceilya.gorbunov
02/24/2021, 4:49 PMjava.util.regex.Pattern
to kotlin.text.Regex
?
You can use Pattern.toRegex()
extension function for that https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/java.util.regex.-pattern/to-regex.htmlghosalmartin
02/25/2021, 2:18 PMPattern
I need to convert to Regex
. Since Pattern
isn’t a contract I can’t see a way to get around this