Skip to main content

//clika-runtime/io.clika.runtime/RegexOptions

RegexOptions

[common]
data class RegexOptions(val caseSensitive: Boolean = true, val longestMatch: Boolean = false, val dotMatchesNewline: Boolean = false, val neverCapture: Boolean = false, val maxProgramMemory: Long = 0, val latin1: Boolean = false)

The compile options of a Regex: a case-insensitive match (caseSensitive false), leftmost-longest instead of leftmost-first (longestMatch), . matching a newline, every group non-capturing, a cap on the compiled program's memory in bytes (0 for none), and Latin-1 bytes instead of UTF-8.

Constructors​

RegexOptions[common]
constructor(caseSensitive: Boolean = true, longestMatch: Boolean = false, dotMatchesNewline: Boolean = false, neverCapture: Boolean = false, maxProgramMemory: Long = 0, latin1: Boolean = false)

Properties​

NameSummary
caseSensitive[common]
val caseSensitive: Boolean = true
dotMatchesNewline[common]
val dotMatchesNewline: Boolean = false
latin1[common]
val latin1: Boolean = false
longestMatch[common]
val longestMatch: Boolean = false
maxProgramMemory[common]
val maxProgramMemory: Long = 0
neverCapture[common]
val neverCapture: Boolean = false