//clika-runtime/io.clika.runtime/Regex/Companion
Companion
[common]
object Companion
Functions
| Name | Summary |
|---|---|
| compile | [common] fun compile(pattern: String, options: RegexOptions? = null): Regex Compile pattern with options (the defaults when null). |
| fullMatch | [common] fun fullMatch(text: String, pattern: String): Boolean Compile pattern and match it against the whole text in one call; compile once for a hot path. |
| partialMatch | [common] fun partialMatch(text: String, pattern: String): Boolean Compile pattern and look for it anywhere in text in one call. |
| quoteMeta | [common] fun quoteMeta(literal: String): String Escape the metacharacters of literal so the result matches it verbatim. |