aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/javascript/reference/global_objects/regexp/flags/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-08-03 08:03:09 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-09-03 08:08:25 +0200
commit844f5103992238c0c23203286dad16a466e89c97 (patch)
treed537708951bb2b61be8192ffacc05a0ce6804f89 /files/fr/web/javascript/reference/global_objects/regexp/flags/index.html
parenta70fd5b73ecb10bec3906640023e2a1a46e118a2 (diff)
downloadtranslated-content-844f5103992238c0c23203286dad16a466e89c97.tar.gz
translated-content-844f5103992238c0c23203286dad16a466e89c97.tar.bz2
translated-content-844f5103992238c0c23203286dad16a466e89c97.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects/regexp/flags/index.html')
-rw-r--r--files/fr/web/javascript/reference/global_objects/regexp/flags/index.html79
1 files changed, 0 insertions, 79 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/regexp/flags/index.html b/files/fr/web/javascript/reference/global_objects/regexp/flags/index.html
deleted file mode 100644
index f03a085b92..0000000000
--- a/files/fr/web/javascript/reference/global_objects/regexp/flags/index.html
+++ /dev/null
@@ -1,79 +0,0 @@
----
-title: RegExp.prototype.flags
-slug: Web/JavaScript/Reference/Global_Objects/RegExp/flags
-tags:
- - ECMAScript 2015
- - JavaScript
- - Propriété
- - Prototype
- - Reference
- - RegExp
- - polyfill
-translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/flags
-original_slug: Web/JavaScript/Reference/Objets_globaux/RegExp/flags
----
-<div>{{JSRef}}</div>
-
-<p>La propriété <strong><code>flags</code></strong> renvoie une chaîne de caractères contenant les <a href="/fr/docs/Web/JavaScript/Guide/Expressions_régulières#Effectuer_des_recherches_avanc.C3.A9es_en_utilisant_les_drapeaux_(flags)">drapeaux (<em>flags</em>)</a> de l'objet {{jsxref("RegExp")}} auquel elle appartient.</p>
-
-<div>{{EmbedInteractiveExample("pages/js/regexp-prototype-flags.html")}}</div>
-
-
-
-<div>{{js_property_attributes(0, 0, 1)}}</div>
-
-<h2 id="Description">Description</h2>
-
-<p>Les drapeaux de la propriété <code>flags</code> sont rangés par ordre alphabétique de gauche à droite.</p>
-
-<h2 id="Exemples">Exemples</h2>
-
-<h3 id="Utiliser_flags">Utiliser <code>flags</code></h3>
-
-<pre class="brush: js">/toto/ig.flags; // "gi"
-/truc/myu.flags; // "muy"
-</pre>
-
-<h2 id="Prothèse_d'émulation_(polyfill)">Prothèse d'émulation (<em>polyfill</em>)</h2>
-
-<pre class="brush: js">if (RegExp.prototype.flags === undefined) {
- Object.defineProperty(RegExp.prototype, 'flags', {
- configurable: true,
- get: function() {
- return this.toString().match(/[gimuy]*$/)[0];
- }
- });
-}
-</pre>
-
-<h2 id="Spécifications">Spécifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">État</th>
- <th scope="col">Commentaires</th>
- </tr>
- <tr>
- <td>{{SpecName('ES2015', '#sec-get-regexp.prototype.flags', 'RegExp.prototype.flags')}}</td>
- <td>{{Spec2('ES2015')}}</td>
- <td>Définition initiale.</td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-get-regexp.prototype.flags', 'RegExp.prototype.flags')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
-
-<p>{{Compat("javascript.builtins.RegExp.flags")}}</p>
-
-<h2 id="Voir_aussi">Voir aussi</h2>
-
-<ul>
- <li>{{jsxref("RegExp.prototype.source")}}</li>
-</ul>