asRegex

fun String.asRegex(ignoreCase: Boolean = false): Regex

Converts this glob-style pattern string to a Regex.

Return

the compiled Regex

Parameters

ignoreCase

whether to ignore case when matching (default false)