Scoop API

scoop:scoop.regex:0.1.0

Regex

class Regex

source · line 10
public
public class Regex public constructor(
    /** The original pattern. */ public val pattern: String,
    options: Set<RegexOption> = emptySet()
) : Closeable

A reusable PCRE2 UTF-8 pattern. Close it deterministically with close/use. Matching calls can share a compiled pattern, but callers must serialize close against every use of that pattern.

Extensions

property options

source · line 15
public
public val options: Set<RegexOption>

get: public read-only

An independent snapshot of the constructor options. Inline pattern options are separate.

function close

source · line 89
public
public override fun close(): Unit

Releases the compiled pattern. Repeated closes are harmless.