aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/substring-after/index.html
blob: 18e6eb98221150bb0ec35bed5985a4354ec3239f (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
---
title: substring-after
slug: Web/XPath/Functions/substring-after
tags:
  - Référence_XSLT
translation_of: Web/XPath/Functions/substring-after
original_slug: Web/XPath/Fonctions/substring-after
---
<p>
{{ XsltRef() }}
</p><p><br>
La fonction <code>substring-after()</code> retourne la partie d'une chaîne donnée suivant une sous-chaîne donnée.
</p>
<h3 id="Syntaxe" name="Syntaxe"> Syntaxe </h3>
<pre class="eval">substring-after( <i>bottedefoin</i> , <i>aiguille</i> )
</pre>
<h3 id="Arguments" name="Arguments"> Arguments </h3>
<dl><dt><code><i>bottedefoin</i></code>
</dt><dd>La chaîne à évaluer. Un extrait de cette chaîne sera retourné.
</dd></dl>
<dl><dt><code><i>aiguille</i></code>
</dt><dd>La sous-chaîne à rechercher. Tout le contenu se trouvant après la première occurrence de <code><i>aiguille</i></code> dans la chaîne <code><i>bottedefoin</i></code> sera retourné.
</dd></dl>
<h3 id="Retour" name="Retour"> Retour </h3>
<p>Une chaîne.
</p>
<h3 id="Exemples" name="Exemples"> Exemples </h3>
<table class="standard-table"> <tbody><tr> <th>Exemple XPath</th> <th>Sortie</th> </tr> <tr> <td><code>&lt;xsl:value-of select="substring-after('1999/04/01','/')" /&gt;</code></td> <td><code>04/01</code></td> </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>(empty string)</td> </tr>
</tbody></table>
<h3 id="D.C3.A9finition" name="D.C3.A9finition"> Définition </h3>
<p><a href="http://www.w3.org/TR/xpath#function-substring-after" class="external">XPath 1.0, section 4.2</a>.
</p>
<h3 id="Support_Gecko" name="Support_Gecko"> Support Gecko </h3>
<p>Supportée.
</p><p><span class="comment">Interwiki languages Links</span>
</p>
<div class="noinclude">
</div>
{{ languages( { "en": "en/XPath/Functions/substring-after", "ja": "ja/XPath/Functions/substring-after", "pl": "pl/XPath/Funkcje/substring-after" } ) }}