---
title: "RegexOptions"
sidebar_label: "RegexOptions"
description: "Kotlin binding reference: RegexOptions."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[RegexOptions](index.md)

# RegexOptions

[common]\
data class [RegexOptions](index.md)(val caseSensitive: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true, val longestMatch: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, val dotMatchesNewline: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, val neverCapture: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, val maxProgramMemory: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0, val latin1: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false)

The compile options of a [Regex](../Regex/index.md): a case-insensitive match ([caseSensitive](caseSensitive.md) false), leftmost-longest instead of leftmost-first ([longestMatch](longestMatch.md)), `.` 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](RegexOptions.md) | [common]<br>constructor(caseSensitive: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true, longestMatch: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, dotMatchesNewline: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, neverCapture: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, maxProgramMemory: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0, latin1: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false) |

## Properties

| Name | Summary |
|---|---|
| [caseSensitive](caseSensitive.md) | [common]<br>val [caseSensitive](caseSensitive.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true |
| [dotMatchesNewline](dotMatchesNewline.md) | [common]<br>val [dotMatchesNewline](dotMatchesNewline.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false |
| [latin1](latin1.md) | [common]<br>val [latin1](latin1.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false |
| [longestMatch](longestMatch.md) | [common]<br>val [longestMatch](longestMatch.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false |
| [maxProgramMemory](maxProgramMemory.md) | [common]<br>val [maxProgramMemory](maxProgramMemory.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0 |
| [neverCapture](neverCapture.md) | [common]<br>val [neverCapture](neverCapture.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false |