diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-05-31 17:35:18 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-05-31 17:35:18 +0300 |
commit | 6f17822859a111f153ba9a2efdf30f4430150c0d (patch) | |
tree | 030c8b425de52605e4e72230be73e3e38e47418c /doc/gawktexi.in | |
parent | bc61f29c492b480545ae31b4b5709f76fe3710b0 (diff) | |
parent | f414221a8c5904fa2c43256a39ce2e3b1faa2214 (diff) | |
download | egawk-6f17822859a111f153ba9a2efdf30f4430150c0d.tar.gz egawk-6f17822859a111f153ba9a2efdf30f4430150c0d.tar.bz2 egawk-6f17822859a111f153ba9a2efdf30f4430150c0d.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 266fc575..9f36e84c 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -17227,11 +17227,12 @@ a[3] = "middle" @cindex substitute in string Search the target string @var{target} for matches of the regular expression @var{regexp}. If @var{how} is a string beginning with -@samp{g} or @samp{G} (short for ``global''), then replace all matches of @var{regexp} with -@var{replacement}. Otherwise, @var{how} is treated as a number indicating -which match of @var{regexp} to replace. If no @var{target} is supplied, -use @code{$0}. It returns the modified string as the result -of the function and the original target string is @emph{not} changed. +@samp{g} or @samp{G} (short for ``global''), then replace all matches +of @var{regexp} with @var{replacement}. Otherwise, treat @var{how} +as a number indicating which match of @var{regexp} to replace. Treat +numeric values less than one as if they were one. If no @var{target} +is supplied, use @code{$0}. Return the modified string as the result +of the function. The original target string is @emph{not} changed. @code{gensub()} is a general substitution function. Its purpose is to provide more features than the standard @code{sub()} and @code{gsub()} |