Core API – Kotlin Programming Language (original) (raw)
inline fun String.toRegex(): Regex(source)
Converts the string into a regular expression Regex with the default options.
Since Kotlin
1.0
inline fun String.toRegex(option: RegexOption): Regex(source)
Converts the string into a regular expression Regex with the specified single option.
Since Kotlin
1.0
inline fun String.toRegex(options: Set<RegexOption>): Regex(source)
Converts the string into a regular expression Regex with the specified set of options.
Since Kotlin
1.0