summaryrefslogtreecommitdiffhomepage
path: root/es-es
diff options
context:
space:
mode:
authorNorwid Behrnd <nbehrnd@yahoo.com>2022-07-11 14:59:38 +0200
committerNorwid Behrnd <nbehrnd@yahoo.com>2022-07-11 14:59:38 +0200
commit0b6ac01abe13c77749b3d941cd450a79b5e8c292 (patch)
tree9308c45d572fd2b3164a2ceb1763a3bda8b0c419 /es-es
parent1ff29272507448495108db30b1410e9b986d7290 (diff)
correct example of gsub in awk-es
Edit is based on the correction in the English edition.[1] [1] https://github.com/adambard/learnxinyminutes-docs/pull/4437
Diffstat (limited to 'es-es')
-rw-r--r--es-es/awk-es.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/es-es/awk-es.html.markdown b/es-es/awk-es.html.markdown
index 8da8f024..2f771320 100644
--- a/es-es/awk-es.html.markdown
+++ b/es-es/awk-es.html.markdown
@@ -196,7 +196,7 @@ function string_functions( localvar, arr) {
# Ambas regresan el número de matches remplazados.
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"
# Buscar una cadena que haga match con una expresión regular
# index() hace lo mismo, pero no permite expresiones regulares