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

<!-- 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)/[partialMatch](partialMatch.md)

# partialMatch

[common]\
fun [partialMatch](partialMatch.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](partialMatch.md) and look for it anywhere in [text](partialMatch.md) in one call.