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

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

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[Regex](../index.md)/[Companion](index.md)/[fullMatch](fullMatch.md)

# fullMatch

[common]\
fun [fullMatch](fullMatch.md)(text: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), pattern: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)

Compile [pattern](fullMatch.md) and match it against the whole [text](fullMatch.md) in one call; compile once for a hot path.