aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/global_objects/regexp/exec
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/javascript/reference/global_objects/regexp/exec')
-rw-r--r--files/ko/web/javascript/reference/global_objects/regexp/exec/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/ko/web/javascript/reference/global_objects/regexp/exec/index.html b/files/ko/web/javascript/reference/global_objects/regexp/exec/index.html
index d20573f473..eb02391603 100644
--- a/files/ko/web/javascript/reference/global_objects/regexp/exec/index.html
+++ b/files/ko/web/javascript/reference/global_objects/regexp/exec/index.html
@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/exec
<h2 id="구문">구문</h2>
-<pre class="syntaxbox notranslate"><var>regexObj</var>.exec(<var>str</var>)</pre>
+<pre class="syntaxbox "><var>regexObj</var>.exec(<var>str</var>)</pre>
<h3 id="매개변수">매개변수</h3>
@@ -45,7 +45,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/exec
<p>다음과 같은 예제를 고려해보세요.</p>
-<pre class="brush: js notranslate">// Match "quick brown" followed by "jumps", ignoring characters in between
+<pre class="brush: js ">// Match "quick brown" followed by "jumps", ignoring characters in between
// Remember "brown" and "jumps"
// Ignore case
let re = /quick\s(brown).+?(jumps)/ig;
@@ -131,7 +131,7 @@ let result = re.exec('The Quick Brown Fox Jumps Over The Lazy Dog');</pre>
<p>If your regular expression uses the "<code>g</code>" flag, you can use the <code>exec()</code> method multiple times to find successive matches in the same string. When you do so, the search starts at the substring of <code>str</code> specified by the regular expression's {{jsxref("RegExp.lastIndex", "lastIndex")}} property ({{jsxref("RegExp.prototype.test()", "test()")}} will also advance the {{jsxref("RegExp.lastIndex", "lastIndex")}} property). For example, assume you have this script:</p>
-<pre class="brush: js notranslate">var myRe = /ab*/g;
+<pre class="brush: js ">var myRe = /ab*/g;
var str = 'abbcdefabh';
var myArray;
while ((myArray = myRe.exec(str)) !== null) {
@@ -143,7 +143,7 @@ while ((myArray = myRe.exec(str)) !== null) {
<p>This script displays the following text:</p>
-<pre class="notranslate">Found abb. Next match starts at 3
+<pre >Found abb. Next match starts at 3
Found ab. Next match starts at 9
</pre>
@@ -153,7 +153,7 @@ Found ab. Next match starts at 9
<p>You can also use <code>exec()</code> without creating a {{jsxref("RegExp")}} object:</p>
-<pre class="brush: js notranslate">var matches = /(hello \S+)/.exec('This is a hello world!');
+<pre class="brush: js ">var matches = /(hello \S+)/.exec('This is a hello world!');
console.log(matches[1]);
</pre>