diff options
author | Marcel Ribeiro Dantas, Ph.D <ribeirodantasdm@gmail.com> | 2022-07-11 20:25:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 20:25:27 +0200 |
commit | eb992cefa69e90b5a6e06f29218fb1efa8fcdec5 (patch) | |
tree | a005498b035be4d703f9dc38d44b71ed355ddf2b | |
parent | a8e6e749acc6e9bc8db120df107873280f3bacb9 (diff) | |
parent | 0b6ac01abe13c77749b3d941cd450a79b5e8c292 (diff) |
Merge pull request #4441 from nbehrnd/awk-es
correct example of gsub in awk-es
-rw-r--r-- | es-es/awk-es.html.markdown | 2 |
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 |