From 0b6ac01abe13c77749b3d941cd450a79b5e8c292 Mon Sep 17 00:00:00 2001 From: Norwid Behrnd Date: Mon, 11 Jul 2022 14:59:38 +0200 Subject: 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 --- es-es/awk-es.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'es-es') 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 -- cgit v1.2.3