---
schema_version: "1"
id: ee3570026d57d6f3bf0863af24cbbd528d91a19bd3abc52e934c632abd0b4266
title: reverse
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-strings-functions-reverse.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-strings-functions-reverse
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 087d5ec6cdad359e588bb8f3fa1144f89aee36631533bb7c115c0166780d58de
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# reverse

## [](#reverse1)reverse(text: String): String

文字列内の文字の順序を反転させます。

_DataWeave バージョン 2.4.0 で導入されました。_

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>text</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">反転させる文字列。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力での ​`reverse`​ の動作を示します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::core::Strings
output application/json
---
 {
     a: reverse("Mariano"),
     b: reverse(null),
     c: reverse("")
 }
```

#### [](#出力)出力

```Json
{
  "a": "onairaM",
  "b": null,
  "c": ""
}
```

## [](#reverse2)reverse(text: Null): Null

`reverse`​ を ​`null`​ 値に使用できるようにするヘルパー関数。

_DataWeave バージョン 2.4.0 で導入されました。_