From 2a76c37d0e733dedf8ed87d1e7e46caf3c44667e Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Fri, 30 Jul 2021 20:18:17 +0200 Subject: Prepare JS French section for Markdown (#1574) * Rm IDs w/ [^h\d] id=" * Remove class="hidden" * Remove hidden for code blocks * rm summary classes * Use Note consistently * Remove sup * Rm code in pre * Fixes dd/dt/dl * Fix some more dd * Remove inline style and useless/craft from span/font * h2m report fixing - Consistent use of notes * h2m report fixing - Consistent use of warnings * h2m report fixing - reword one callout * h2m report fixing - array cruft spans hell * Cleaning the rest of docs for md conversion --- .../javascript/reference/global_objects/string/replace/index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'files/fr/web/javascript/reference/global_objects/string/replace') diff --git a/files/fr/web/javascript/reference/global_objects/string/replace/index.html b/files/fr/web/javascript/reference/global_objects/string/replace/index.html index 73dd09d1a7..38e5c691d0 100644 --- a/files/fr/web/javascript/reference/global_objects/string/replace/index.html +++ b/files/fr/web/javascript/reference/global_objects/string/replace/index.html @@ -20,8 +20,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/String/replace
{{EmbedInteractiveExample("pages/js/string-replace.html")}}
- -

Syntaxe

chn.replace(regexp|souschn, nouvSouschn|fonction)
@@ -141,8 +139,8 @@ console.log(nouvChn); // Twas the night before Christmas...

Cela affiche 'Twas the night before Christmas...'.

-
-

Note : Voir ce guide pour plus d'explications concernant les expressions régulières.

+
+

Note : Voir ce guide pour plus d'explications concernant les expressions régulières.

Utilisation de global et ignore avec replace()

@@ -225,7 +223,7 @@ x_x_x___x___x___
-
Un tableau d'objets. Un 'x' dénote un état 'marche', un '-' symbolise un état 'arret' et un  '_' (blanc souligné) symbolise la longueur d'un état 'marche'.
+
Un tableau d'objets. Un 'x' dénote un état 'marche', un '-' symbolise un état 'arret' et un  '_' (blanc souligné) symbolise la longueur d'un état 'marche'.
-- cgit v1.2.3-54-g00ecf