summaryrefslogtreecommitdiffhomepage
path: root/es-es
diff options
context:
space:
mode:
authorMarcel Ribeiro Dantas, Ph.D <ribeirodantasdm@gmail.com>2022-07-11 20:25:27 +0200
committerGitHub <noreply@github.com>2022-07-11 20:25:27 +0200
commiteb992cefa69e90b5a6e06f29218fb1efa8fcdec5 (patch)
treea005498b035be4d703f9dc38d44b71ed355ddf2b /es-es
parenta8e6e749acc6e9bc8db120df107873280f3bacb9 (diff)
parent0b6ac01abe13c77749b3d941cd450a79b5e8c292 (diff)
Merge pull request #4441 from nbehrnd/awk-es
correct example of gsub in awk-es
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