summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNorwid Behrnd <nbehrnd@yahoo.com>2022-07-11 14:12:16 +0200
committerNorwid Behrnd <nbehrnd@yahoo.com>2022-07-11 14:12:16 +0200
commitb20081e0f8cea3a741a411a8caedb9446fc017d9 (patch)
treeb78ee965cce9e57268daf58c647580cbfc6367f9
parent1ff29272507448495108db30b1410e9b986d7290 (diff)
correct example about gsub
This corrects an error spot in the English edition of the document spot earlier[1] and equally present in the French one. [1] https://github.com/adambard/learnxinyminutes-docs/pull/4437
-rw-r--r--fr-fr/awk-fr.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/fr-fr/awk-fr.html.markdown b/fr-fr/awk-fr.html.markdown
index 75c48811..14780c93 100644
--- a/fr-fr/awk-fr.html.markdown
+++ b/fr-fr/awk-fr.html.markdown
@@ -199,7 +199,7 @@ function string_functions( localvar, arr) {
# Les deux renvoient le nombre de correspondances remplacées
localvar = "fooooobar";
sub("fo+", "Meet me at the ", localvar); # localvar => "Meet me at the bar"
- gsub("e+", ".", localvar); # localvar => "m..t m. at th. bar"
+ gsub("e", ".", localvar); # localvar => "m..t m. at th. bar"
# Rechercher une chaîne de caractères qui correspond à une expression régulière
# index() fait la même chose, mais n'autorise pas les expressions régulières