replace ()
takes string source
and replace the first occurrence of substring from
with substring to
; after that,
returns the result.
source
, from
and to
can be any valid expression.
replace (outputfile (), "main/", "acc/");
Return the output file name replacing substring main/ with acc/. If you have two version of every page, with similar file names, this is an easy way to provide links between them.
replaceall ()
takes string source
and replace all occurrences of substring from
with substring to
; after that,
returns the result.
source
, from
and to
can be any valid expression.
Return a new string created inserting new_string
into
source
, at character index
.
This manual can be downloaded from http://www.g-cows.org/.