> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arc.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# arc:match

> arc:match を使用して、値に対して複雑なパターンマッチングを実行します。exact、regex、glob のマッチタイプをサポートします。

`arc:match` キーワードは、[arc:equals](https://docs.arc.cdata.com/26.4/self-hosted/ja/scripting/keyword-reference/op-arc-equals.md) キーワードと類似します。ただし、これは複雑なマッチング規則を許容します。

## パラメータ

* **pattern**：一致するパターン。
* **type**：見つける一致のタイプ。デフォルト値は`exact` で、値の完全一致が必要です。この場合、`arc:match` は`arc:equals` と同一です。サポートされているその他のタイプは、正規表現マッチング用の`regex`と、ファイル名パターン（`*.txt` など）で使われるものと同様のシンプルな式モデルをサポートする`glob` です。
  * アプリケーションの.NET 版は、.NET Framework 版の正規表現マッチングを使います。
  * クロスプラットフォーム版は、Java 正規表現構造を使います。
* **value**：一致する値。

## アトリビュートの制御

None

## 例

正規表現パターンを使って浮動小数点数をチェックします。パターンが一致すると、アイテムが追加されます。

```xml theme={null}
<arc:match pattern="[-+]?[0-9]*.?[0-9]*" type="regex" value="-3.14">
  <arc:push/>
</arc:match>
```

## 関連項目

* [arc:select](https://docs.arc.cdata.com/26.4/self-hosted/ja/scripting/keyword-reference/op-arc-select.md)：複数の値を比較する。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.