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

## [](#substringafter1)substringAfter(text: String, separator: String): String

区切り文字の最初の出現位置より後にあるサブ文字列を取得します。区切り文字は返されません。

_DataWeave バージョン 2.2.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>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>separator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">検索対象の文字列。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力とサイズでの ​`substringAfter`​ の動作を示します。

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

```DataWeave
%dw 2.0
import * from dw::core::Strings
output application/json
---
{
  "a": substringAfter(null, "'"),
  "b": substringAfter("", "-"),
  "c": substringAfter("abc", "b"),
  "d": substringAfter("abcba", "b"),
  "e": substringAfter("abc", "d"),
  "f": substringAfter("abc", "")
}
```

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

```JSON
{

  "a": null,
  "b": "",
  "c": "c",
  "d": "cba",
  "e": "",
  "f": "abc"
}
```

## [](#substringafter2)substringAfter(text: Null, separator: String): Null

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

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