Page 1 of 1

Kind of small documentation bug on replace()

Posted: 03 Sep 2014 23:56
by PeterH
(Edited to be more exact)

Problem: 'replacement' not shown as optional, dflt-values not shown.
Bold = changes.

Doku of replace() says:
replace(string, search, replacement, [matchcase], [start=1], [count=-1])
but should say:
replace(string, search, [replacement=""], [matchcase=0], [start=1], [count=-1])

Operand "replacement" reads:
String to replace with.
but should read:
String to replace with. Default is empty string "": replace by nothing.

The sentence/hint below Usage might be dropped then.

Re: Kind of small documentation bug on replace()

Posted: 22 Sep 2014 12:14
by PeterH
:?:

Re: Kind of small documentation bug on replace()

Posted: 22 Sep 2014 20:11
by admin
Thanks!