W3cubDocs

/Kotlin

toString

Platform and version requirements: JVM (1.0), JS (1.1), Native (1.3)
fun toString(): String

Returns the string representation of this regular expression, namely the pattern of this regular expression.

Note that another regular expression constructed from the same pattern string may have different options and may match strings differently.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-regex/to-string.html