aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/xpath/functions/substring-after/index.html
blob: de1666a73621b825bba246ea8f462b301a357304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: substring-after
slug: Web/XPath/Functions/substring-after
tags:
  - XPath 関数
  - XSLT
  - XSLT_Reference
  - substring-after
translation_of: Web/XPath/Functions/substring-after
---
<p>{{ XsltRef() }}</p>

<p><code>substring-after</code> 関数は、与えられた文字列内で、与えられた部分文字列よりも後にある残りの部分を返します。</p>

<h3 id="Syntax" name="Syntax">構文</h3>

<pre class="eval">substring-after(<em>haystack</em> ,<em>needle</em> )
</pre>

<h3 id="Arguments" name="Arguments">引数</h3>

<dl>
 <dt><em><code>haystack</code></em></dt>
 <dd>評価される文字列。この文字列の一部が返される。</dd>
</dl>

<dl>
 <dt><em><code>needle</code></em></dt>
 <dd>検索する文字列。<em><code>haystack</code></em> 内で最初に見つかった<em><code>needle</code></em> よりも後にあるすべての文字が返される。</dd>
</dl>

<h3 id="Returns" name="Returns">返値</h3>

<p>文字列。</p>

<h3 id="Examples" name="Examples"></h3>

<table class="standard-table">
 <tbody>
  <tr>
   <th>XPath の例</th>
   <th>出力</th>
  </tr>
  <tr>
   <td><code>substring-after('aa-bb','-')</code></td>
   <td><code>bb</code></td>
  </tr>
  <tr>
   <td><code>substring-after('aa-bb','a')</code></td>
   <td><code>a-bb</code></td>
  </tr>
  <tr>
   <td><code>substring-after('aa-bb','b')</code></td>
   <td><code>b</code></td>
  </tr>
  <tr>
   <td><code>substring-after('aa-bb','q')</code></td>
   <td>(空文字列)</td>
  </tr>
 </tbody>
</table>

<h3 id="Defined" name="Defined">定義元</h3>

<p><a class="external" href="http://www.w3.org/TR/xpath#function-substring-after">XPath 1.0 4.2</a></p>

<h3 id="Gecko_support" name="Gecko_support">Gecko での対応</h3>

<p>対応済み。</p>