diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:15 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:15 -0500 |
commit | 4b1a9203c547c019fc5398082ae19a3f3d4c3efe (patch) | |
tree | d4a40e13ceeb9f85479605110a76e7a4d5f3b56b /files/de/web/javascript/reference/global_objects/regexp/input | |
parent | 33058f2b292b3a581333bdfb21b8f671898c5060 (diff) | |
download | translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.gz translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.bz2 translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.zip |
initial commit
Diffstat (limited to 'files/de/web/javascript/reference/global_objects/regexp/input')
-rw-r--r-- | files/de/web/javascript/reference/global_objects/regexp/input/index.html | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/files/de/web/javascript/reference/global_objects/regexp/input/index.html b/files/de/web/javascript/reference/global_objects/regexp/input/index.html new file mode 100644 index 0000000000..d173458705 --- /dev/null +++ b/files/de/web/javascript/reference/global_objects/regexp/input/index.html @@ -0,0 +1,105 @@ +--- +title: RegExp.input ($_) +slug: Web/JavaScript/Reference/Global_Objects/RegExp/input +tags: + - JavaScript + - Property + - Reference + - RegExp + - Regular Expressions +translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/input +--- +<div>{{JSRef}} {{non-standard_header}}</div> + +<p>Die nicht-standarde input Propertie ist eine statische Propertie regularer Expressionen, welche die Zeichenkette, der eine reguläre Expression entgegengestellt wird, enthält. <code>RegExp.$_</code> ist ein Alias für diese Propertie.</p> + +<h2 id="Syntaxis">Syntaxis</h2> + +<pre class="syntaxbox"><code><var>RegExp</var>.input +RegExp.$_</code> +</pre> + +<h2 id="Beschreibung">Beschreibung</h2> + +<p>Die <code>input</code>-Propertie ist statisch, ist nicht eine Propertie eines einzigen Obiectes einer regulären Expression. Stattdessen nutzt man es immer als <code>RegExp.input</code> oder</p> + +<p>Der Wert der <code>input</code>-Propertie wird verändert, wenn die gesuchte Zeichenkette in der regulären Expression verändert wird und diese Zeichenkette passt.</p> + +<h2 id="Beispiele"><code>Beispiele</code></h2> + +<h3 id="Verwendung_von_input_und__"><code>Verwendung von <code>input</code> und <code>$_</code></code></h3> + +<pre class="brush: js"><code>var re = /hi/g; +re.test("hi there!"); +RegExp.input; // "hi there!" +re.test("foo"); // neuer Test, unpassend +RegExp.$_; // "hi there!" +re.test("hi world!"); // neuer Test, passend +RegExp.$_; // "hi world!" +</code></pre> + +<h2 id="Specificationen"><code>Specificationen</code></h2> + +<p><code>Non-standard. Nicht Teil von irgendeiner laufenden Specification.</code></p> + +<h2 id="Browsercompatibilität"><code>Browsercompatibilität</code></h2> + +<div><code>{{CompatibilityTable}}</code></div> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th><code>Feature</code></th> + <th><code>Chrome</code></th> + <th><code>Firefox (Gecko)</code></th> + <th><code>Internet Explorer</code></th> + <th><code>Opera</code></th> + <th><code>Safari</code></th> + </tr> + <tr> + <td><code>Basisunterstützung</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th><code>Feature</code></th> + <th><code>Android</code></th> + <th><code>Chrome for Android</code></th> + <th><code>Firefox Mobile (Gecko)</code></th> + <th><code>IE Mobile</code></th> + <th><code>Opera Mobile</code></th> + <th><code>Safari Mobile</code></th> + </tr> + <tr> + <td><code>Basisunterstützung</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + <td><code>{{CompatVersionUnknown}}</code></td> + </tr> + </tbody> +</table> +</div> + +<h2 id="Siehe_auch"><code>Siehe auch</code></h2> + +<ul> + <li><code>{{non-standard_inline}} {{jsxref("RegExp.lastMatch", "RegExp.lastMatch ($&)")}}</code></li> + <li><code>{{non-standard_inline}} {{jsxref("RegExp.lastParen", "RegExp.lastParen ($+)")}}</code></li> + <li><code>{{non-standard_inline}} {{jsxref("RegExp.leftContext", "RegExp.leftContext ($`)")}}</code></li> + <li><code>{{non-standard_inline}} {{jsxref("RegExp.rightContext", "RegExp.rightContext ($')")}}</code></li> + <li><code>{{non-standard_inline}} {{jsxref("RegExp.n", "RegExp.$1-$9")}}</code></li> +</ul> |