toRegex
fun String.toRegex(): Regex
Converts the string into a regular expression Regex with the default options.
fun String.toRegex(option: RegexOption): Regex
fun String.toRegex(options: Set<RegexOption>): Regex
fun String.toRegex(): Regex
Converts the string into a regular expression Regex with the default options.
fun String.toRegex(option: RegexOption): Regex
fun String.toRegex(options: Set<RegexOption>): Regex