aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/xpath/functions/substring-before/index.html
blob: 1336715eee2e6d21d2954c3451aeaa701eb88385 (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
---
title: substring-before
slug: Web/XPath/Functions/substring-before
tags:
  - XSLT_Reference
translation_of: Web/XPath/Functions/substring-before
---
<p>{{ XsltRef() }}</p>
<p><br>
 <code>substring-before</code> 함수는 첫 번째 인수에서 두 번째 인수가 나타난 앞의 나머지를 반환합니다.</p>
<h3 id=".EA.B5.AC.EB.AC.B8" name=".EA.B5.AC.EB.AC.B8">구문</h3>
<pre class="eval">substring-before(<i>haystack</i> ,<i>needle</i> )
</pre>
<h3 id=".EC.9D.B8.EC.88.98" name=".EC.9D.B8.EC.88.98">인수</h3>
<dl>
 <dt>
  <i>
   <code>haystack</code></i>
 </dt>
 <dd>
  평가할 문자열. 이 문자열의 부분이 반환됩니다.</dd>
</dl>
<dl>
 <dt>
  <i>
   <code>needle</code></i>
 </dt>
 <dd>
  찾을 부분 문자열.
  <i>
   <code>haystack</code></i>
  에서
  <i>
   <code>needle</code></i>
  의 첫 출현 앞의 문자열이 반환됩니다.</dd>
</dl>
<h3 id=".EB.B0.98.ED.99.98" name=".EB.B0.98.ED.99.98">반환</h3>
<p>문자열.</p>
<h3 id=".EC.A3.BC.EC.9D.98" name=".EC.A3.BC.EC.9D.98">주의</h3>
<p>XSL 예:</p>
<pre class="eval">&lt;xsl:value-of select="substring-before('1999/04/01','/')" /&gt;
</pre>
<p>출력</p>
<pre class="eval">1999
</pre>
<h3 id=".EC.A0.95.EC.9D.98" name=".EC.A0.95.EC.9D.98">정의</h3>
<p><a class="external" href="http://www.w3.org/TR/xpath#function-substring-before">XPath 1.0 4.2</a></p>
<h3 id="Gecko_.EC.A7.80.EC.9B.90" name="Gecko_.EC.A7.80.EC.9B.90">Gecko 지원</h3>
<p>지원함.</p>