function toRegexOrNone
source · line 10public
public fun String.toRegexOrNone(options: Set<RegexOption> = emptySet()): Regex?
Extension receiver: String
Returns None only for pattern syntax errors; allocation and unrelated failures still propagate.
parameter options
source · line 10public
options: Set<RegexOption> = emptySet()
parameter receiver
source · line 10public
String