summaryrefslogtreecommitdiffstats
path: root/source/rainerscript/functions/rs-replace.rst
blob: 2d98e758e63de1e6de14b90b0c4d6add86a63ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
*********
replace()
*********

Purpose
=======

replace(str, substr_to_replace, replace_with)

Returns new string with all instances of substr_to_replace replaced
by replace_with.


Example
=======

.. code-block:: none

   replace("foo bar baz", " b", ", B")

produces

.. code-block:: none

   "foo, Bar, Baz"