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