aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/guide/regular_expressions/assertions
diff options
context:
space:
mode:
author3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com>2022-02-16 17:11:01 +0900
committerGitHub <noreply@github.com>2022-02-16 17:11:01 +0900
commitc5e82bf41f336a59704ee8c429e3147f73fa8a48 (patch)
tree1329fd03f09c80a3fd39dfcf95bb480866252c8f /files/ko/web/javascript/guide/regular_expressions/assertions
parent2968f00d257b512ac0d046a3fa12e8deec2540fb (diff)
downloadtranslated-content-c5e82bf41f336a59704ee8c429e3147f73fa8a48.tar.gz
translated-content-c5e82bf41f336a59704ee8c429e3147f73fa8a48.tar.bz2
translated-content-c5e82bf41f336a59704ee8c429e3147f73fa8a48.zip
remove all span tags 1 (#3920)
Co-authored-by: Kyle <mkitigy@gmail.com>
Diffstat (limited to 'files/ko/web/javascript/guide/regular_expressions/assertions')
-rw-r--r--files/ko/web/javascript/guide/regular_expressions/assertions/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/ko/web/javascript/guide/regular_expressions/assertions/index.html b/files/ko/web/javascript/guide/regular_expressions/assertions/index.html
index 329b51d884..e84cfd4153 100644
--- a/files/ko/web/javascript/guide/regular_expressions/assertions/index.html
+++ b/files/ko/web/javascript/guide/regular_expressions/assertions/index.html
@@ -88,19 +88,19 @@ original_slug: Web/JavaScript/Guide/정규식/Assertions
<tr>
<td><code>x(?!y)</code></td>
<td>
- <p><strong>Negative lookahead assertion: </strong>Matches "x" only if "x"<span> is not followed by </span>"y"<span>.</span> For example, <code>/\d+(?!\.)/</code><span> matches a number only if it is not followed by a decimal point. </span><code>/\d+(?!\.)/.exec('3.141')</code> matches "141" but not "3.</p>
+ <p><strong>Negative lookahead assertion: </strong>Matches "x" only if "x" is not followed by "y". For example, <code>/\d+(?!\.)/</code> matches a number only if it is not followed by a decimal point. <code>/\d+(?!\.)/.exec('3.141')</code> matches "141" but not "3.</p>
</td>
</tr>
<tr>
<td><code>(?&lt;=y)x</code></td>
<td>
- <p><strong>Lookbehind assertion: </strong>Matches "x" only if "x" is preceded by "y". For example, <code>/(?&lt;=Jack)Sprat/</code><span> matches "Sprat" only if it is preceded by "Jack". </span><code>/(?&lt;=Jack|Tom)Sprat/</code> matches "Sprat" only if it is preceded by "Jack" or "Tom". However, neither "Jack" nor "Tom" is part of the match results.</p>
+ <p><strong>Lookbehind assertion: </strong>Matches "x" only if "x" is preceded by "y". For example, <code>/(?&lt;=Jack)Sprat/</code> matches "Sprat" only if it is preceded by "Jack". <code>/(?&lt;=Jack|Tom)Sprat/</code> matches "Sprat" only if it is preceded by "Jack" or "Tom". However, neither "Jack" nor "Tom" is part of the match results.</p>
</td>
</tr>
<tr>
<td><code>(?&lt;!y)x</code></td>
<td>
- <p><strong>Negative lookbehind assertion: </strong>Matches "x" only if "x" is not preceded by "y". For example, <code>/(?&lt;!-)\d+/</code><span> matches a number only if it is not preceded by a minus sign. </span><code>/(?&lt;!-)\d+/.exec('3')</code> matches "3". <code>/(?&lt;!-)\d+/.exec('-3')</code>  match is not found because the number is preceded by the minus sign.</p>
+ <p><strong>Negative lookbehind assertion: </strong>Matches "x" only if "x" is not preceded by "y". For example, <code>/(?&lt;!-)\d+/</code> matches a number only if it is not preceded by a minus sign. <code>/(?&lt;!-)\d+/.exec('3')</code> matches "3". <code>/(?&lt;!-)\d+/.exec('-3')</code>  match is not found because the number is preceded by the minus sign.</p>
</td>
</tr>
</tbody>
@@ -181,7 +181,7 @@ console.log('This is a First peach in a month.'.match(regex)); // null
<h3 id="Basic_negative_lookahead_assertion">Basic negative lookahead assertion</h3>
-<p>For example, <code>/\d+(?!\.)/</code><span> matches a number only if it is not followed by a decimal point. </span><code>/\d+(?!\.)/.exec('3.141')</code> matches "141" but not "3.</p>
+<p>For example, <code>/\d+(?!\.)/</code> matches a number only if it is not followed by a decimal point. <code>/\d+(?!\.)/.exec('3.141')</code> matches "141" but not "3.</p>
<pre class="brush: js">console.log(/\d+(?!\.)/g.exec('3.141')); // [ '141', index: 2, input: '3.141' ]
</pre>